objective c - Delegation and retrieving info on IOS -


i'm trying heading info cllocationmanager it's not getting called. did documentation says, wrong. i'm using locationmanager delegating app delegate.

here method retrieve heading messages:

  - (void) locationmanager:(cllocationmanager *)manager didupdateheading:(clheading *)newheading {     nslog(@"%@", newheading); } 

here part main()

  locationmanager = [[cllocationmanager alloc] init];     [locationmanager setdelegate:self];     [locationmanager startupdatingheading]; 

but nothing happens! debugging, nslog never getting called. when same [locationmanager startupdatinglocation] works fine, shows location info, using method (very same looking using

- (void) locationmanager:(cllocationmanager *) manager     didupdatetolocation:(cllocation *)newlocation fromlocation:(cllocation *)oldlocation  

but need heading info here.

found deal. code fine, issue in iphone simulator. somehow providing location info fine, heading info not provided message never sent. talk weird things, apple.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -