You spelled the init method wrong,
#import "RootViewController.h"
@implementation RootViewController
- (void)loadView {
self.view = [[[uIView alloc] initWithFrame:[[uIScreen mainScreen] applicationFrame]] autorelease];
self.view.backgroundColor = [uIColor yellowColor];
UIAlertView *alert = [[uIAlertView alloc] initWithTitle:@"Alert" message:@"Hello this is an alert message" delegate:self cancelButtonTitle:@"I Know"
otherButtonTitles:nil];
[alert show];
}
@end
One more thing. Add this code to the top of your makefile.
ARCHS = armv7 arm64
TARGET = iphone:clang:8.1
If you're on the ios 7.1 SDK, replace
TARGET = iphone:clang:8.1
With
TARGET = iphone:clang:7.1