IOS9后自定义大头针无法正常显示
2015-09-23 12:02
363 查看
地图上设置MKAnnotationView 的image属性,IOS9无法正常显示
代码如下:
MKPinAnnotationView *annotationView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:locationReuseIndetifier];
annotationView.canShowCallout = NO;annotationView.draggable = NO;
annotationView.image = [UIImage imageNamed:@"img_custom"];
return annotationView ;
修改成:
MKAnnotationView *annotationView = [[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:ReuseIndetifier];
annotationView.canShowCallout = NO;
annotationView.draggable = NO;
annotationView.image = [UIImage imageNamed:@"img_custom"];
return annotationView ;便可以正常显示
相关文章推荐
- iOS GCD与NSOperation的差别
- 键盘弹出高度和遮挡问题
- iOS objc_msgSend 报错解决方案
- iOS 隐藏状态栏
- ios 开发如何放大热区
- iOS消息推送机制的实现
- ios开发之代理&&协议
- Xcode7链接错误 normal arm64 bitcode enabled
- iOS9的一些问题
- IOS代理
- iOS开发日记24-详解RunLoop
- 向用户征询iOS授权的五种常见设计模式
- iOS开发之百度地图API应用 转
- JS判断客户端是否是iOS或者Android或者ipad(一)
- iOS9开发之新增通知行为详解
- iOS 9:你需要知道的10件事
- 获取iOS设备型号的方法总结
- 漫谈TabBar(一)
- iOS 9 适配需要注意的问题
- Facebook 开源安卓版 React Native,开发者可将相同代码用于网页和 iOS 应用开发