iphone - How to make Location Services icon disappear from Status Bar? -
my application doesn't need location service monitor user's location , don't want drain battery, on startup location, send statistics server , call stopupdatinglocation
on cllocationmanager
instance. icon disappears status bar! :)
next, in 1 of tabs have mkmapview
in user can ask , see (using annotation) current location. after switch tab different view i'd stop using location services. how achieve this? i've read question what determines presence of iphone location services icon in status bar? , i'm start thinking described use case bug in ios (?).
edit: in view mkmapview
don't use cllocationmanager
@ all.
in viewdiddisappear
method in view controller has mkmapview
, set mapview's showsuserlocation
property no.
- (void)viewdiddisappear:(bool)animated { [super viewdiddisappear:animated]; self.mapview.showsuserlocation = no; }
Comments
Post a Comment