我在導航欄的左側創建了一個信息按鈕。 如何讓用戶在點擊信息按鈕後導航到另一個名爲「AboutViewController」的視圖? 請幫忙!! (下面是我的代碼)導航信息按鈕到另一個屏幕Xcode
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];