Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLBeaconRegion method crash #821

Open
hengyizhangcn opened this issue Apr 2, 2018 · 0 comments
Open

CLBeaconRegion method crash #821

hengyizhangcn opened this issue Apr 2, 2018 · 0 comments

Comments

@hengyizhangcn
Copy link

用OC调用CLBeaconRegion初始化方法

  • (instancetype)initWithProximityUUID:(NSUUID *)proximityUUID major:(CLBeaconMajorValue)major minor:(CLBeaconMinorValue)minor identifier:(NSString *)identifier
    当proximityUUID的长度大于0,但没达到足够长度,该初始化方法会返回nil,不会崩溃。
    如果用js调用此方法时,如下:
    CLBeaconRegion.alloc().initWithProximityUUID_major_minor_identifier(NSUUID.alloc().initWithUUIDString(self.UUIDString()), self.major(), self.minor(), "12345449-1234-1234-1234-12345678434F"),
    当UUIDString长度小于足够长度(如"12345449-1234-1234-1234-12345678434F")时,会崩溃!

81480269-dee9-47ff-83fb-9fc5959ac275

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant