Jelle
Jelle

Reputation: 294

Refresh UIScrollview

In my app, i'm using an UIScrollView. I am adding some subviews to it, but it takes a long time before the UIScrollView is (automatically) refreshing and the content I added will appear. Is there a method to do this manually?

Thanks

Upvotes: 1

Views: 2456

Answers (2)

NeverBe
NeverBe

Reputation: 5037

Are you adding some subviews on UIScrollView on the main thread?

Upvotes: 1

tomsoft
tomsoft

Reputation: 4567

Usually you don't need to do it, the view is automatically refreshed when you add/modify subview

The manual way to "force" an update is through [UIVIew setNeedsDisplay] but this is more when you subclass a view and do custom drawing

On standard UIView/ScrollView this should not be needed, so may be your problem is somewhere else?

Upvotes: 0

Related Questions