ios - Undefined declaration error -


I'm trying to develop an iPhone app that gives current latitude and longitude values ​​and "undefined announcement" Please help me sort it out. thank you in advanced. #import "LoginViewController.h" // # import & lt; Core location / Core location. & Gt; @ Interface log in viator controller () @ app @implementation log in VIPU controller @ sinescase locator; - (zero) DLok {// [Super Delooc]; } - (zero) did risiv memorialisation [[super daviditamammy warning]; // Any resource settlement which can be reproduced. } - (zero) viewDidUutup {[SuperWooddownload]; // Setup an additional after loading the view, usually from a nibb. } - (IBAction) button: (ID) sender {locationManager = [[CLLocationManager alloc] init]; LocationManager.delegate = self; LocationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters; LocationManager.distanceFilter = kCLDistanceFilterNone; [LocationManager startUpdatingLocation]; CLLocation * location = [locationManager location]; CLLocationCoordinate2D coordinate = [location coordination]; NSString * Latitude = [NSString stringWithFormat: @ "% f", Coordinate. Latitude]; NSString * Longitude = [NSString stringWithFormat: @ "% f", Coordinate. Lame]; NSLog (@ "dialette:% @", latitude); NSLog (@ "Diagged:% @", Longitude); UILabel * label = [[UILabel alloc] initWithFrame: CGRectMake (50, 40, 250, 50)]; UILabel * myLabel = [[UILabel alloc] initWithFrame: CGRectMake (50, 80, 200, 50)]; UILabel * myLabel1 = [[UILabel alloc] initWithFrame: CGRectMake (50, 120, 200, 100)]; MyLabel.textColor = [UIColor blackColor]; MyLabel1.textcolor = [UIColor blackcolor]; Label.backgroundColor = [UIColor clear collar]; MyLabel.backgroundColor = [UIColor clear collar]; MyLabel1.backgroundColor = [UIColor clear collar]; [MyLabel set test: latitude]; [MyLabel1 set text: longitude]; Label.text = "Current latitude and longitude"; [Self.view addSubview: label]; [Self.view addSubview: myLabel]; [Self.view addSubview: myLabel1]; } - (BOOL) must be atorotettointerface function: (UINPerface Orientation) Interface Orientation {Returns (Interface Orientation == UINFterfaceOrmentation Portrait); & Lt; --- Here's the error) @end

This should be

  return (toInterfaceOrientation == UIInterfaceOrientationPortrait);    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

jsp - Google line chart x-axis shrinks on transition -

java - Reaching JTextField in a DocumentListener -