tags:

views:

40

answers:

1

i have coded in appdelegate.m as following to change from currentview to UItable viewcontroller?but i am getting error,tab is a uitableview controller

    tab = [interviewViewController alloc];
[viewController.view removeFromSuperview];
[viewController.view addSubview:tab];
 [window addSubview:viewController.view];
A: 

YOu never initialize tab, and you addit to viewController. I'm not really sure what you're trying to do.

Do this:

tab = [[interviewViewController alloc] init];
[viewController.view removeFromSuperview];
[window addSubview:tab.vew];
Dan Lorenc