xcode - iOS MapView shows entire United States -
i'm trying load region in mapview, view of entire u.s. ipad app runs in landscape mode. i'm thinking spans may not proper dimensions, i'm not sure how fix it. here's data have. ideas?
i've solved similar problem adding cllocationmanager:
self.locationmanager = [[cllocationmanager alloc] init]; self.locationmanager.delegate = self; // check ios 8. without guard, code crash "unknown selector" on ios 7. if ([self.locationmanager respondstoselector:@selector(requestwheninuseauthorization)]) { [self.locationmanager requestwheninuseauthorization]; } [self.locationmanager startupdatinglocation];
Comments
Post a Comment