2
iOS 5의 새로운 기능인 스토리 보드로 작업을 시작 했으므로 탭 응용 프로그램으로 시작한 다음 테이블보기 컨트롤러를 추가하고 더미 데이터로 채 웁니다. 테이블 내가 이런 식으로ios5의 스토리 보드가있는 TabelViewController
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
if(indexPath.row == 0)
{
FirstViewController *settingsView =[[FirstViewController alloc]initWithNibName:@"FirstViewController" bundle:nil];
[self.navigationController pushViewController:settingsView animated:YES];
}
if(indexPath.row == 1)
{
SecondViewController *settingsView =[[SecondViewController alloc]initWithNibName:@"SecondViewController" bundle:nil];
[self.navigationController pushViewController:settingsView animated:YES];
}
if(indexPath.row == 2)
{
ThirdViewController *settingsView =[[ThirdViewController alloc]initWithNibName:@"ThirdViewController" bundle:nil];
[self.navigationController pushViewController:settingsView animated:YES];
}
}
를 코딩하지만 알고 사용, 지금은 각 셀의 클릭에, 나는 그래서 이전에 각 셀에 대해 diffrent됩니다 newViewController,
를 열려면, 4 개 셀이 , 어떻게해야합니까? 나를 도와주세요.
감사합니다. & 감사 인사 란짓
이 링크를 확인하시기 바랍니다 http://maybelost.com/2011 : 보낸 사람 : 스토리 보드
https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/performSegueWithIdentifier:sender에서 새의 ViewController을 수행 할 수있는 방법이어야한다/10/tutorial-storyboard-in-xcode-4-2-navigation-controller-and-tabbar-controller-part1 / – developer9