标签在iOS 6中显示文本但不在iOS中7

标签在iOS 6中显示文本但不在iOS中7

问题描述:

我有我的应用程序的视图,显示标签中的信息,问题是此标签在iOS 7中为空,但在iOS 6中正常工作,但无法找到为什么。标签在iOS 6中显示文本但不在iOS中7

这是使用的方法获得视图控制器和显示数据:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 
{ 

ShoppeDetailViewController *detailViewController = [[ShoppeDetailViewController alloc] initWithNibName:@"ShoppeDetailViewController" bundle:nil]; 

PDLocation *pdLocationPhone = [self.locations objectAtIndex:indexPath.row]; 

detailViewController.phone = pdLocationPhone.telephone; 
detailViewController.callMe = pdLocationPhone.callMe; 

[self.navigationController pushViewController:detailViewController animated:YES]; 

PDLocation *pdLocation = [self.locations objectAtIndex:indexPath.row]; 
detailViewController.shoppeLabel.text = pdLocation.name; 
detailViewController.addressLabel.text = pdLocation.description; 

CLLocation *location = [[CLLocation alloc] initWithLatitude:pdLocation.location.latitude longitude:pdLocation.location.longitude]; 
CLLocationDistance distance = [_userLocation distanceFromLocation:location]; 
if (distance < 0.1) { 
detailViewController.distanceLabel.text = [NSString stringWithFormat:@"Bienvenido"]; 
} else { 

    [detailViewController.distanceLabel setText:[NSString stringWithFormat:@"Estás a %.01f Km", distance/1000]]; 
} 

[tableView deselectRowAtIndexPath:indexPath animated:YES]; 
} 

我不能让它在的iOS 7的工作,任何想法?

谢谢!

这是厦门国际银行文件

XIB file showing label ubication

+1

你确定他们是空的或他们在白色或白色显示白色文本? –

+0

不是颜色问题我曾尝试过,事情是标签在iOS 6中显示内容,但不在iOS 7中,如果我将一些默认文本iOS 7标签显示为文本。 – roymckrank

检查标签的backgroundColortextColor。似乎这是一个颜色问题。