我有一行代碼:以上OS 4.3.5的iPad的MonoTouch:在IOS 4.3.1無法識別的選擇iPad的
this.NavigationItem.LeftBarButtonItems = new UIBarButtonItem[] { btnRefresh,btnCalculator};
工作正常,但OS 4.3.5拋出這個奇怪的錯誤了「一些」我的用戶。我無法複製,但曾多次向我報告:
[UINavigationItem setLeftBarButtonItems:]: unrecognized selector sent to instance 0x86bf20
UIKitApplication:com.ianvink.ref.goldsilver[0x99bd][121]
Unhandled Exception: MonoTouch.Foundation.MonoTouchException:
Objective-C exception thrown. Name: NSInvalidArgumentException
Reason: -[UINavigationItem setLeftBarButtonItems:]: unrecognized selector sent to instance 0x86bf20
UIKitApplication:com.ianvink.ref.goldsilver[0x99bd][121] <Notice>:
at MonoTouch.UIKit.UINavigationItem.set_LeftBarButtonItems
(MonoTouch.UIKit.UIBarButtonItem[] value) [0x00000] in <filename unknown>:0
在這種情況下是否有解決方法?