[MonoTouch] iPod Touch unhappy with use of RightBarButtonItems
Robert Jordan
robertj at gmx.net
Sat Dec 17 09:40:17 EST 2011
On 17.12.2011 02:50, jlindborg wrote:
> UIBarButtonItem _addButton = new UIBarButtonItem (UIImage.FromBundle
> ("Images/more_24.png"), UIBarButtonItemStyle.Plain,
> Handle_AddNewPrivateRecordingClicked);
>
> UIBarButtonItem _editButton = new UIBarButtonItem (UIImage.FromBundle
> ("Images/delete_24.png"), UIBarButtonItemStyle.Plain, Handle_EditMode);
>
> NavigationItem.RightBarButtonItems = new UIBarButtonItem[]
> {_addButton,_editButton};
RightBarButtonItems is an iOS 5 API:
http://developer.apple.com/library/IOs/#documentation/UIKit/Reference/UINavigationItem_Class/Reference/UINavigationItem.html#//apple_ref/doc/uid/TP40006933-CH3-SW19
Check the iOS version of your device.
Robert
More information about the MonoTouch
mailing list