geo*_*iva 12 uinavigationbar mkmapview ios7
我将现有的iOS 6应用程序移植到新的iOS 7中.但是每当MKMapView实例出现在屏幕上时,我的导航栏就会失去其色彩.
重现步骤:
打开Xcode;
创建一个新的Master-Detail应用程序;
添加下一行作为AppDelegate.m didFinishLaunchingWithOptions方法的第一行:
[[UINavigationBar appearance] setBarTintColor:[UIColor redColor]]
将下一行添加到MasterViewController.m文件中:
#import <MapKit/MapKit.h>
最后,将下一行添加到MasterViewController.m cellForRowAtIndexPath方法:
MKMapView *view = [[MKMapView alloc] initWithFrame:CGRectMake(0, 0, 100, 40)];
[cell.contentView addSubview:view];
构建并运行
这些是结果:

难道我做错了什么?我该怎么做才能解决这个问题?
我应该开始使用Google Maps API吗?
| 归档时间: |
|
| 查看次数: |
1584 次 |
| 最近记录: |