2016年1月2日
摘要: 在该方法中- (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath,添加如下代码,即可简单实现不重复添加和移动到中心: /* 遍历_annotations数组,如果有同名字符串... 阅读全文
posted @ 2016-01-02 13:24 十一点前要睡觉的小寒 阅读(158) 评论(0) 推荐(0) 编辑
摘要: #pragma mark -添加选择工具条/*** 定位用户位置的模式: MAUserTrackingModeNone = 0, // 不追踪用户的location更新 MAUserTrackingModeFollow = 1, // 追踪用户的location更新 ... 阅读全文
posted @ 2016-01-02 13:19 十一点前要睡觉的小寒 阅读(364) 评论(0) 推荐(0) 编辑
摘要: //CGRectInset 将原来的矩形放大或者缩小,正表示缩小,-表示放大。CGRect rect= CGRectMake(20, 50, 100, 80); CGRect rect1=CGRectInset(rect, -10, 20); NSLog(@"%@",p(rect1));//输出结... 阅读全文
posted @ 2016-01-02 11:03 十一点前要睡觉的小寒 阅读(427) 评论(0) 推荐(0) 编辑