我創建了一個自定義視圖,並添加了一個Web視圖作爲該自定義視圖的子視圖。我以編程方式創建了一個導航欄。現在我想在該視圖中創建一個左或右導航欄按鈕。如何在iPhone中的自定義導航欄中創建導航欄項目?
navigBar = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];
navigBar.tintColor = [UIColor blackColor];
[self.view addSubview:navigBar];
UIBarButtonItem *homeButton = [[UIBarButtonItem alloc] initWithTitle:@"Home" style:UIBarButtonSystemItemAction target:self action:@selector(homeButtonAction)];
navigBar.rightBarButtonItem = homeButton; // it's not supports
如何在自定義導航欄中創建導航欄項目?,我想要刪除自定義視圖。所以請幫助我!
謝謝。
看到我的問題,我已更新。 – Pugal 2011-01-22 15:59:16