Checking for iOS Location Services

后端 未结 4 2029
别那么骄傲
别那么骄傲 2020-12-23 10:28

I have a view with a map and a button (like the Maps app once) that allows the user to center and zoom his current location on the map. If I can not use the locationServices

4条回答
  •  隐瞒了意图╮
    2020-12-23 11:02

    I run into this problem too and still be finding the answer.

    take care that authorizationStatus requires iOS4.2+ and + (BOOL)locationServicesEnabled requires iOS4.0... And for previous iOS versions, it is - (BOOL)locationServicesEnabled...

提交回复
热议问题