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
Post a Comment