I'm making an map view were I wanna zoom in automatic on users location, I have done the view controllers coding and are now on app delegate.
AppDelegate.h
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
AppDelegate.m
#import "AppDelegate.h"
#import "WalkingTableViewController.h"
@implementation AppDelegate
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]
WalkingTableViewController *rootVC = [[WalkingTableViewController alloc] init]
[self.window setRootViewController:rootVC]
[self.window makeKeyAndVisible]
return YES;
}
@end
and I get Expected member name or ';' after declaration specifiers
on the line
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]
can someone help me please?
Yep, you need to end with ;
each statement. It delimits the end of line.