When creating an iOS app, I'm confused as to when exactly I need to call
setNeedsDisplay? I know that it has something to do with updating/redrawing the UI; however, do I need to call this every time I change any of my views?
For example, do I need to call it:
- After programatically changing the text in a text field
- When changing the background of a view?
- When I make changes in viewDidLoad?
- How about in viewDidAppear?
Could someone give me some general guidelines regarding when to use this method?