开发者

Refreshing subview of uiview?

开发者 https://www.devze.com 2023-01-17 10:41 出处:网络
I want to refresh the uiview which has uiimageview and uilabel as a subview of uiview. I don\'开发者_开发百科t know how to do this.Plz help me out to do.

I want to refresh the uiview which has uiimageview and uilabel as a subview of uiview. I don'开发者_开发百科t know how to do this.Plz help me out to do.

Thank u... Renya


For custom views, just send your view the message to refresh itself.

For Objective-C

[yourView setNeedsDisplay];

or

[yourView setNeedsDisplayInRect:aRect];

For Swift

yourView.setNeedsDisplay()

or

yourView.setNeedDisplay(aRect)

The standard views generally refresh automatically whenever you change their contents, i.e. change the text of a label or the image of an imageview.

0

精彩评论

暂无评论...
验证码 换一张
取 消