iOS: Can a UIView know that the layout process for it has completed? -


when using auto layout, view's size unknown when initialised, brings problem me.

when using uiimageview, wrote category can load image own cdn setting image url uiimageview, cdn stores 1 image different sizes difference devices can load size needs.

i want make uiimageview able load url resolution needs, when uiimageview url, size of not yet determined auto layout.

so there way uiview know layout process has finished first time?

there method uiview.you override it.

-(void)layoutsubviews {     cgrect bounds =self.bounds;     //build imageview's frame here     self.imageview=imageviewframe. } 

Comments

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -