To create an UILabel programmaticaly, code:
UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(50, 100, 200, 100)];
I wanted to create a label programmaticaly and google gave me the above code.
But the apple docs dont even mention InitWithFrame method in the UILabel class reference?
Yes I am aware that UILabel inherits from UIView. I checked UIView and yes the method is there, but isnt it silly to keep having to jump from document to document up the inhertiance tree? What if there was another method which was way up the inheritance tree which we needed to use. Are we really expected to keep going up into the inheritance tree? Further how can we even be sure that a certain method will work with a certain class?
many thanks
iphone sdl uilabel method issue
Page 1 of 1|
|

New Topic/Question
Reply



MultiQuote


|