ios - CLLocationManager requestWhenInUseAuthorization errors with no known class method -


i changed target version app ios 8 , updated xcode 6.0 version. when build see bunch of methods getting marked deprecated confirms building against ios 8.0 when try call [cllocationmanager requestwheninuseauthorization], build error saying no known class method selector 'requestwheninuseauthorization'

am missing here ?

requestwheninuseauthorization instance method, not class method - create cllocationmanager instance, , call method on that.

see the docs more info.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -