2014-03-25 1 views
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]; 
} 

나는 그것이 아이폰 OS 7에서 작동 할 수없는, 어떤 아이디어?

감사합니다.

은 XIB 파일을입니다

XIB file showing label ubication

+1

비어 있는지 또는 흰색으로 텍스트를 흰색으로 표시합니까? –

+0

색상 문제가 아님 제가 시도한 바에 따르면 레이블은 iOS 6의 콘텐츠를 표시하지만 iOS 7의 콘텐츠는 표시하지 않습니다. 기본 텍스트를 넣으면 iOS 7 라벨에 텍스트가 표시됩니다. – roymckrank

답변

0

확인 라벨의 backgroundColortextColor. 그것은 색상 문제가있는 것 같습니다.

관련 문제