Hi,
I've created NIB file for one ViewController on my Navigation Controller. It opens up and shows empty white view. I want to show UIButtons on it programatically.
I overwrite viewDidLoad method, and can see it gets called. I create a button, but am not able to attach that button to view.
I've tried numerous ways, but this is one of them:
Any help really appreciated.
Thanks in advance
--MB
I've created NIB file for one ViewController on my Navigation Controller. It opens up and shows empty white view. I want to show UIButtons on it programatically.
I overwrite viewDidLoad method, and can see it gets called. I create a button, but am not able to attach that button to view.
I've tried numerous ways, but this is one of them:
Code:
UIButton *myButton = [self makeMyButton];
[button setCenter:CGPointMake(160.0f, 200.0f)];
self.view = myButton;
[button release];
Any help really appreciated.
Thanks in advance
--MB