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