使用XCode 5定位 IOS6的最小操作系统,我创建了这样的条形按钮项 self.navigationItem.rightBarButtonItem = [[MKUserTrackingBarButtonItem alloc] initWithMapView:self.mapView]; 然后设置它的色调 self.navigationItem.rig
self.navigationItem.rightBarButtonItem = [[MKUserTrackingBarButtonItem alloc] initWithMapView:self.mapView];
然后设置它的色调
self.navigationItem.rightBarButtonItem.tintColor = [UIColor colorWithRed:175.0f / 255.0f green: 189.0f / 255.0f blue: 69.0f / 255.0f alpha:1.0f];
当我部署到IOS6时,条形按钮项目被正确着色,但在IOS7设备上它仍然是库存蓝色
这是其他人经历过的问题吗?一个XCode 5错误?
救命?
谢谢
MKUserTrackingBarButtonItem *buttonItem = [[MKUserTrackingBarButtonItem alloc] initWithMapView:self.mapView]; [buttonItem.customView setTintColor:[UIColor colorWithRed:175.0f / 255.0f green: 189.0f / 255.0f blue: 69.0f / 255.0f alpha:1.0f]];