自定义大头针
来源:互联网 发布:软通动力java工资 编辑:程序博客网 时间:2024/06/06 13:38
-(MKAnnotationView *)mapView:(MKMapView *)theMapView viewForAnnotation:(id <MKAnnotation>)annotation {
MKAnnotationView *newAnnotation=[[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"annotation1"];
if ([[annotation title] isEqualToString:@"当前位置"]) {
newAnnotation.image = [UIImage imageNamed:@"person_location"];
}
else{
newAnnotation.image = [UIImage imageNamed:@"login_logo_small"];
}
newAnnotation.canShowCallout=YES;
return newAnnotation;
MKAnnotationView *newAnnotation=[[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"annotation1"];
if ([[annotation title] isEqualToString:@"当前位置"]) {
newAnnotation.image = [UIImage imageNamed:@"person_location"];
}
else{
newAnnotation.image = [UIImage imageNamed:@"login_logo_small"];
}
newAnnotation.canShowCallout=YES;
return newAnnotation;
0 0
- 自定义大头针
- 自定义大头针
- 自定义大头针
- 自定义大头针
- 自定义大头针
- 百度地图自定义大头针
- ios-地图-自定义大头针
- 104 自定义大头针
- iOS 大头针 MKAnnotationView 自定义
- Mapview自定义大头针
- MKMapView 自定义大头针
- 自定义大头针简单介绍
- customUserView(自定义大头针)
- iOS大头针(自定义大头针,定位,画线)
- MapKit之大头针全面解析(使用系统大头针、自定义大头针callout视图、使用图片显示大头针)
- 【iPhone Demo】地图自定义大头针
- 【iPhone Demo】地图自定义大头针
- iOS 百度地图自定义大头针。
- hdu4185Oil Skimming 二分匹配
- mongodb入门安装
- LeetCode(108) Convert Sorted Array to Binary Search Tree
- org.apache.catalina.startup.hostconfig deployDirectory
- 欢迎使用CSDN-markdown编辑器
- 自定义大头针
- spring---ApplicationListener,ApplicationEvent
- hdu5360Hiking 贪心
- hdu 1181 变形课(dfs)
- 关于IOS7开始,靠左侧边的控件的事件响应问题
- Appium1.4 的简介、安装及其使用真机测试(iOS版)
- iOS开发中isKindOfClass和isMemberOfClass的区别
- app后端搭建聊天服务器的经历
- 好的博客链接