我在导航栏的左侧创建了一个信息按钮。单击信息按钮后,如何允许用户导航到另一个名为“AboutViewController”的视图?请帮忙!!(以下是我的代码)
UIButton* infoButton = [UIButton buttonWithType:UIButtonTypeInfoLight];
[infoButton addTarget:self action:@selector(viewWillAppear:) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem *modalButton = [[UIBarButtonItem alloc] initWithCustomView:infoButton];
[self.navigationItem setLeftBarButtonItem:modalButton animated:YES];
[modalButton release];