Cocoa - iOS -Does updating the text property of a UILabel require setNeedsDisplay?
-
12-11-2019 - |
Question
I am a newbie and I have a iOS project where I am setting the text property of a UILabel field.
self.nameLabel.text = @"abcd";
Question
- Do I need to invoke setNeedsDisplayInRect for the label for the new text value to be displayed ?
My understanding based on some testing:
- Without invoking setNeedsDisplayInRect, the the label's text was updated,
- but I want to know if it was a coincidence or is gauranteed that the the label will display the new value without explicitly invoking setNeedsDisplay
Thanks
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow