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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -