- 博客(1)
- 资源 (5)
- 收藏
- 关注
原创 iOS Block使用注意
声明 我们在声明block的时候要记得使用copy修饰; 循环引用 在操作block回调的时候要避免吗循环引用,我们要先声明__weaktypeof(self) weakSelf =self;
2017-05-08 09:50:49 584
百度定位搜索选择收货地址
这个是选择收货地址的定位选择功能
使用百度SDK开发定位选择收货地址的功能,pod添加百度地图SDK
在AppDelegate添加一下代码
#pragma mark - 百度SDK
//百度地图设置key
_mapManager = [[BMKMapManager alloc]init];
// 如果要关注网络及授权验证事件,请设定 generalDelegate参数
BOOL ret = [_mapManager start:BMK_KEY generalDelegate:nil];
if (!ret) {
NSLog(@"manager start failed!");
}
//百度定位设置key
[[BMKLocationAuth sharedInstance] checkPermisionWithKey:BMK_KEY authDelegate:self
];
2018-03-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人