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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -