UINavigationController에 UITableView를 삽입하는 방법
하나의 응용 프로그램을 만들고 있습니다. 응용 프로그램의 기본보기는 singleViewController입니다.
singleViewController에서 Label을 탭하면 UINavigationController 인스턴스 화면 (참조 : 캡처 된 이미지)으로 이동합니다. 아래의 코드는 내가 라벨을 탭할 때 사용하는 방법입니다.
그럼 내가 물어보고 싶은 것은
입니다. 1. UITableView를 UINavigationController에 추가하려면 어떻게해야합니까?
2. 내가 내 전이 이미지 ◆ UINavigationController가 클래스 파일 (.H와하는 .m)
을 준비해야한다는
[(UINavigationController가없는) singleViewController] ← → [UINavigationController가 (jQuery과 포함)]
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [[event allTouches] anyObject];
if (touch.view.tag == mainCountryLabel.tag){
NSLog(@"%d", mainCountryLabel.tag);
NSLog(@"Label Clicked !!");
UINavigationController *testView = [[UINavigationController alloc] init];
testView.view.backgroundColor = [UIColor redColor];
[self presentViewController:testView animated:NO completion:nil];
}
안부
스토리 보드를 사용하고 있습니까? – YuviGr
>> YuviGr Objective-c를 깊이 이해하고 싶기 때문에 스토리 보드를 사용하지 않겠습니다. 스토리 보드는 유용하다고 생각하지만 프로그래머에게는 그다지 중요하지 않습니다. – Yaemon