나는 다음과 같은보기를 만들었다 고 가정패스 데이터는
(this thread에서 계속) :
'보기'버튼을 새의 ViewController를 밀어하도록되어있는 버튼을 눌렀을 때 Josh 또는 Al로 모든 사진을 표시합니다.
내 질문이이다 : 나는 '보기'버튼 (상단 또는 하단)을 누르면 결정 어떻게의의 ViewController 코드에서
?
이
내가 가진 그 코드 :- (IBAction) viewImageList {
PhotoListViewController* photoListViewController = [[PhotoListViewController alloc]
initWithNibName:@"PhotoListViewController"
bundle:[NSBundle mainBundle]];
// here, I want to dynamically pass in the name (Josh or Al) based on which 'View' button is pressed
photoListViewController.ownerName = @"someName";
[[self navigationController] pushViewController:photoListViewController animated:YES];
[photoListViewController release];
}
또는 사람이 다른 접근 방식을 가지고 있다면, 나는 그 버튼에 터치 최대 내부 동작이가는 경우가