yea, I am just trying to understand the fundamentals for actually drawing stuff to the screen using pre-written methods in conjunction with openGL.
I am trying to get a button to draw to the screen, and while the program does compile and launch the simulator, I merely get a blank app running typical of Xcode templates.
the AppDelegate Class have an ivar and property of
I am trying to get a button to draw to the screen, and while the program does compile and launch the simulator, I merely get a blank app running typical of Xcode templates.
the AppDelegate Class have an ivar and property of
Code:
UILabel *titleLabel
Code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
//...
UIButton *button = [UIButton buttonWithType: UIButtonTypeRoundedRect];
button.titleLabel.font = [UIFont systemFontOfSize: 12];
button.titleLabel.lineBreakMode = UILineBreakModeTailTruncation;
button.titleLabel.shadowOffset = CGSizeMake (1.0, 0.0);
[self.window addSubview: button];
}