private void HandleEditButtonTapped(object sender, EventArgs args) { var actionSheetDelegate = new VerseEditActionSheetDelegate(this, verse); var actionSheet = new UIActionSheet { CancelButtonIndex = 2, DestructiveButtonIndex = 0, Delegate = actionSheetDelegate, }; actionSheet.Add("Delete"); actionSheet.Add("Edit"); actionSheet.Add("Cancel"); actionSheet.ShowFromTabBar(AppDelegate.TabBarController.TabBar); }
private void HandleEditButtonTapped(object sender, EventArgs args) { var actionSheetDelegate = new VerseEditActionSheetDelegate (this, verse); var actionSheet = new UIActionSheet { CancelButtonIndex = 2, DestructiveButtonIndex = 0, Delegate = actionSheetDelegate, }; actionSheet.Add ("Delete"); actionSheet.Add ("Edit"); actionSheet.Add ("Cancel"); actionSheet.ShowFromTabBar (AppDelegate.TabBarController.TabBar); }