0
我有我的應用程序的視圖,顯示標籤中的信息,問題是此標籤在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的工作,任何想法?
謝謝!
這是廈門國際銀行文件
你確定他們是空的或他們在白色或白色顯示白色文本? –
不是顏色問題我曾嘗試過,事情是標籤在iOS 6中顯示內容,但不在iOS 7中,如果我將一些默認文本iOS 7標籤顯示爲文本。 – roymckrank