# 如何在回调方法中判断是进入区域还是退出区域？

**URL:** <https://bbs.aprbrother.com/t/topic/129>\
**Category:** AprilBeacon\
**Created:** [May 29, 2015, 10:59am UTC](https://bbs.aprbrother.com/t/topic/129 "2015-05-29T10:59:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiamao130](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jiamao130](https://bbs.aprbrother.com/u/jiamao130)\
**Post date:** [May 29, 2015, 10:59am UTC](https://bbs.aprbrother.com/t/topic/129/1 "2015-05-29T10:59:23Z")

</div>

您好，请问下在AppDelegate中didEnterRegion和didExitRegion中无法判断beacon的major与minor值，得在didRangeBeacons：回调方法中进行判断，但该回调方法中如何知道是进入区域还是退出区域呢？万分感谢！

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [May 30, 2015, 2:44am UTC](https://bbs.aprbrother.com/t/topic/129/2 "2015-05-30T02:44:50Z")

</div>

didRangeBeacons回调不能判断进入或退出。可以尝试在didEnterRegion / didExitRegion回调中，调用startRangingBeaconsInRegion:来找找有哪些beacon
