What to use instead of regionMonitoringAvailable which is deprecated in iOS 7?

RawMean

regionMonitoringAvailable is deprecated in iOS 7. What are we supposed to use instead?

James Frost

The header file for CLLocationManager states that you should now use [CLLocationManager isMonitoringAvailableForClass:]:

Determines whether the device supports monitoring for the specified type of region. If NO, all attempts to monitor the specified type of region will fail.

You pass in the class of CLRegion you wish to monitor. For example:

[CLLocationManager isMonitoringAvailableForClass:[CLBeaconRegion class]];

Edit: As @anna mentions above, this is also discussed in the Location and Maps Programming Guide.

Apple usually post information about alternatives to deprecated methods, but unfortunately the documentation, headers, and other programming guides are sometimes out of sync with one another.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

What to use instead of regionMonitoringAvailable which is deprecated in iOS 7?

From Dev

What should I use instead of deprecated GKLeaderboardViewController in iOS7?

From Dev

requestAccessToAccountsWithType is deprecated in ios6.1, what should i use instead?

From Dev

What to use instead of JFace Actions (since they are deprecated)?

From Dev

Apache CXF LoggingInInterceptor is deprecated - what to use instead?

From Dev

IOS CGContextSelectFont and CGContextShowText deprecated what to use now

From Dev

'UIAlertView' was deprecated in iOS 9.0. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead

From Dev

Swift - 'init()' was deprecated in iOS 9.0: Use -initWithConcurrencyType: instead

From Dev

'lock' is deprecated: first deprecated in iOS 8.0 - Use -performBlockAndWait: instead - iOS coredata warning

From Dev

The type HTable(config,tablename) is deprecated. What use instead?

From Java

If `when (a) in x..y` is deprecated, what should I use instead?

From Java

Observer is deprecated in Java 9. What should we use instead of it?

From Java

Is `shouldOverrideUrlLoading` really deprecated? What can I use instead?

From Dev

In TinyMCE 4, editor.onBeforeSetContent.add() is deprecated, what to use instead?

From Dev

If window.navigator.userAgent is deprecated, what should I use instead?

From Java

Facebook's setReadPermissions() on Login Button deprecated - what to use instead?

From Dev

Block or allow websites with "/etc/hosts" is really deprecated? What to use instead?

From Dev

HttpClient.getParams() deprecated. What should I use instead?

From Dev

node.js fs.exists() will be deprecated, what to use instead?

From Dev

Observer is deprecated in Java 9. What should we use instead of it?

From Dev

In TinyMCE 4, editor.onBeforeSetContent.add() is deprecated, what to use instead?

From Dev

Block or allow websites with "/etc/hosts" is really deprecated? What to use instead?

From Dev

In what sense, is `lvmdiskscan` deprecated,and we should use `pvs` instead?

From Dev

Node 6 Buffer constructor deprecated, what to use instead?

From Dev

GameKit GKMatchMaker inviteHandler deprecated in iOS7, what is the replacement?

From Dev

iOS 7 : 'isa' is deprecated

From Dev

IOS 7 sizeWithFont Deprecated

From Dev

'isConnected' deprecated in iOS 7

From Dev

ios 7 initWithOverlay deprecated

Related Related

  1. 1

    What to use instead of regionMonitoringAvailable which is deprecated in iOS 7?

  2. 2

    What should I use instead of deprecated GKLeaderboardViewController in iOS7?

  3. 3

    requestAccessToAccountsWithType is deprecated in ios6.1, what should i use instead?

  4. 4

    What to use instead of JFace Actions (since they are deprecated)?

  5. 5

    Apache CXF LoggingInInterceptor is deprecated - what to use instead?

  6. 6

    IOS CGContextSelectFont and CGContextShowText deprecated what to use now

  7. 7

    'UIAlertView' was deprecated in iOS 9.0. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead

  8. 8

    Swift - 'init()' was deprecated in iOS 9.0: Use -initWithConcurrencyType: instead

  9. 9

    'lock' is deprecated: first deprecated in iOS 8.0 - Use -performBlockAndWait: instead - iOS coredata warning

  10. 10

    The type HTable(config,tablename) is deprecated. What use instead?

  11. 11

    If `when (a) in x..y` is deprecated, what should I use instead?

  12. 12

    Observer is deprecated in Java 9. What should we use instead of it?

  13. 13

    Is `shouldOverrideUrlLoading` really deprecated? What can I use instead?

  14. 14

    In TinyMCE 4, editor.onBeforeSetContent.add() is deprecated, what to use instead?

  15. 15

    If window.navigator.userAgent is deprecated, what should I use instead?

  16. 16

    Facebook's setReadPermissions() on Login Button deprecated - what to use instead?

  17. 17

    Block or allow websites with "/etc/hosts" is really deprecated? What to use instead?

  18. 18

    HttpClient.getParams() deprecated. What should I use instead?

  19. 19

    node.js fs.exists() will be deprecated, what to use instead?

  20. 20

    Observer is deprecated in Java 9. What should we use instead of it?

  21. 21

    In TinyMCE 4, editor.onBeforeSetContent.add() is deprecated, what to use instead?

  22. 22

    Block or allow websites with "/etc/hosts" is really deprecated? What to use instead?

  23. 23

    In what sense, is `lvmdiskscan` deprecated,and we should use `pvs` instead?

  24. 24

    Node 6 Buffer constructor deprecated, what to use instead?

  25. 25

    GameKit GKMatchMaker inviteHandler deprecated in iOS7, what is the replacement?

  26. 26

    iOS 7 : 'isa' is deprecated

  27. 27

    IOS 7 sizeWithFont Deprecated

  28. 28

    'isConnected' deprecated in iOS 7

  29. 29

    ios 7 initWithOverlay deprecated

HotTag

Archive