의 속성을 설정 (및 @synthesize
하는 .m)에IOS는 :이 속성이 내 응용 프로그램에서 iOS7에
@property (nonatomic, strong) IBOutlet UILabel *titleHeader;
secondViewController
인치 그것이 작동하지 않는
[secondViewController.titleHeader setText:@"title"];
, iOS 6
에서 작동 :
문제는 iOS 7
에 firstViewController
에서 내가 할 경우이다.
왜?
편집
나는 그것을 할 : 당신이 그들을 설정할 때 secondViewController
의
SecondViewController *secondViewController = [[SecondViewController alloc]initWithNibName:@"SecondViewController" bundle:nil code:[object code]];
[self.navigationController pushViewController:secondViewController animated:YES];
[secondViewController.titleHeader setText:[object name]];
[secondViewController.headerView setBackgroundColor:colorHeaderGallery];
어떤 방식으로 작동하지 않습니까? is titleHeader! = nil입니까? 그리고 secondViewController입니다! = nil? – Magnus
제 질문을 편집합니다 – CrazyDev