小编Hen*_*rik的帖子

iOS didEnterRegion从未调用过

iOS和gefencing有一些问题......

//
//  ViewController.m
//  
//
//  Created by me on 14.05.13.
//  Copyright (c) 2013 me. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()<CLLocationManagerDelegate>

{
    CLLocationManager *locationManager;
    CLRegion *testRegion;
}
#define METERS_PER_MILE 1609.344
@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    [self initlocationManager];
//    [self startlocationManager];
}

// init location Manager Object, set delegation, result and accurate
- (void)initlocationManager {
    //create location manager object
    locationManager = [[CLLocationManager alloc]init];

    //this instance send its messages to our AppDelegate
    [locationManager setDelegate:self]; …
Run Code Online (Sandbox Code Playgroud)

locationmanager ios geofencing clregion

1
推荐指数
1
解决办法
3445
查看次数

标签 统计

clregion ×1

geofencing ×1

ios ×1

locationmanager ×1