如何在我的UINavigationControl的右上角創建主頁按鈕。請注意,我在我的第二個UIviewController上實例化了我的UINavigationControl:ViewControllerSecond。我希望能夠擁有傳統的「家庭」圖標,並在按下後退到名爲ViewController的appDelegate中的第一個UIviewControler。如何在我的UINavigationController的右上角創建主頁按鈕
我走了這麼遠:
@property (nonatomic, weak) UIBarButtonItem *homeProperty;
UIBarButtonItem *homeButton = [[UIBarButtonItem alloc] initWithTitle:@"Home" style:UIBarButtonItemStylePlain target:self action:@selector(home)];
[self.navigationItem setLeftBarButtonItem:homeButton animated:NO];
,但我不能用我的第一個視圖控制器連接或更換與家庭按鈕圖像的文本。
非常感謝