- 博客(1)
- 资源 (5)
- 收藏
- 关注
原创 iOS 简单使用通知模式
今天在写了一个天气预报模块,切换城市时,要传值给显示天气的controller里,选择城市有一级和二级界面,二级界面使用代理不好实现,用到了通知模式,也就是 NSNotificationCenter类。 首先我在二级controller的cell上触发点击事件代码如下: - (void)tableView:(UITableView *)tableView didSelectRowAtInde
2013-05-03 14:57:00 916
百度定位搜索选择收货地址
这个是选择收货地址的定位选择功能
使用百度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关注的人