Try pulling off the /* and */ to uncomment the block
In Xcode the text will become color coded instead of all the same (comment color of your choice in preferences) color
Code:
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
// return (interfaceOrientation == UIInterfaceOrientationPortrait);
return YES;
}
//btnClicked: implementation
-(IBAction) btnClicked:(id)sender {
//display alert
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"btnClicked"
message:@"Starting"
delegate:self
cancelButtonTitle:@"Go ahead"
otherButtonTitles:nil, nil];
[alert show];
[alert release];
}