#layoutIfNeeded

setNeedsLayout和layoutIfNeeded

-(void)setNeedsLayout;Invalidatesthecurrentlayoutofthereceiverandtriggersalayoutupdateduringthenextupdatecycle.-(void)layoutIfNeeded;Laysoutthesubviewsimmediate...
代码星球 ·2020-09-11