Chapter 4 page 86


#1

The compiler is not allowing me to finish the code that allows me to get my current location i can copy and " - (void) locationManager:(CLLocationManager *) manager
didUpdateToLocation:(CLLocation *) newLocation
fromLocation:(CLLocation *) oldLocation {

NSLog(@"%@", newLocation); "  just fine but i am not able to type the code my self i tried closing the brackets i tried putting them inside the brackets nothing is working i will post my code 

m file [code]//
// WhereamiViewController.m
// Whereami
//
// Created by troy miller on 10/11/12.
// Copyright © 2012 troy miller. All rights reserved.
//

#import “WhereamiViewController.h”

@interface WhereamiViewController ()

@end

@implementation WhereamiViewController

-(id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];

if (self) {
    //create the location manager object
    locationManager = [[CLLocationManager alloc]init];
    
    [locationManager setDelegate:self];
    
    //and we want it to be the most accurate as possible
    //regardless of how much time/power it takes
    [locationManager setDesiredAccuracy:kCLLocationAccuracyBest];
    
    // tell the manager to start lookin for it location immediately
    [locationManager startUpdatingLocation];

}
return self;
}

@end
[/code]

please help i dont know whati am doing wrong i have tried retyping the code multiple times