开发者

Window Based Application - Problems getting to next view/controller

I have a Windows based application. I have a series of buttons in the xib. When I click on one of the buttons I want it to load a table view or a web page or a text view (depending on the button). This is the code I am using to attempt to move to the table view (which has its own xib). It prints the NSLogs lines in the console. It does none of the navigation. What am I missing? Is this not the way it is supposed to work?

-(IBAction)vocabListPressed:(id)sender {
    NSLog(@"Exiting vocabListPressed");

    V开发者_StackOverflowocabListController *second = [[VocabListController alloc] initWithNibName:@"VocabListController" bundle:nil];

    [second setTitle:@"Vocabulary List"];

    [self.navigationController pushViewController:second animated:YES];

    [second release];

    NSLog(@"Entering vocabListPressed");
}


I would start a new iPhone OS project using the Navigation-based Application template, so that you can take advantage of the boiler-plate code for getting a navigation controller, etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜