ios - MapKit works on simulator but not on device -
when call map view controller on device, app gets stuck, nothing happens, xcode doesn't throw error. same code works fine on simulator. code presenting map view:
-(ibaction)mapbuttonaction { //storyboard uistoryboard *sb = [uistoryboard storyboardwithname:@"mainstoryboard_iphone" bundle:nil]; //navigation controller mapviewcontroller *vc=[sb instantiateviewcontrollerwithidentifier:@"mapviewcontroller"]; vc.coordinates = coordinates; vc.locationname = locationname; //warp uinavigationcontroller uinavigationcontroller *vc2 = [[uinavigationcontroller alloc]initwithrootviewcontroller:vc]; [[self navigationcontroller] presentviewcontroller:vc2 animated:yes completion:nil]; }
i tried remove , add again mapkit , corelocation frameworks, restart xcode, checked base sdk ios 6.1 , remove , rebuild app on device. when make map view root view controller loads fine. b.t.w device iphone 4, internet connection , gps working fine , in privacy settings under gps app aproved. ideas?!
Comments
Post a Comment