0
MonoTouch 선호하지만 Obj-C도 좋습니다iPhone NavigationControl 도구 모음 항목
내 MainWindow.xib에는 NavigationView 및보기가 있습니다. 보기 멋지게 나타납니다 작동하지만 NavigationView의 일부인 도구 모음에 단추를 추가해야합니다. IB에서 도구 모음을 볼 수 있습니다.
이보기에서는 도구 모음에 단추를 추가하려고하지만 나타나지 않습니다.
UIBarButtonItem btnBrowse = new UIBarButtonItem ("Browse", UIBarButtonItemStyle.Bordered, null);
UIBarButtonItem btnOptions = new UIBarButtonItem ("Options", UIBarButtonItemStyle.Bordered, null);
UIBarButtonItem btnBibles = new UIBarButtonItem ("Bibles", UIBarButtonItemStyle.Bordered, null);
UIBarButtonItem btnSpacer = new UIBarButtonItem (UIBarButtonSystemItem.FlexibleSpace);
void WireUpCommands()
{
this.NavigationController.Toolbar.SetItems (new[] { btnOptions, btnSpacer, btnBrowse, btnSpacer, btnBibles }, false);
}