0

How is it possible to change the title of the UIBarButtonItem's when using mfmailcomposeviewcontroller? I don't want the text "cancel"/"send" and I also do not need the save/delete draft option which prompt the user when he/she taps "cancel".

LuckyLuke
  • 47,771
  • 85
  • 270
  • 434

2 Answers2

1

You can't. MFMailComposeViewController is not customizable.

You can change the Development Region in your Info.plist so that your system buttons will be translated, or add translations in your app and the system buttons will be translated to the user's selected language.

Note: This is probably a duplicate with this question

Community
  • 1
  • 1
AliSoftware
  • 32,623
  • 6
  • 82
  • 77
0

Thats because you have set it with a system item "style" UIBarButtonSystemItem.

You have these to use, or use a custom one:

  • UIBarButtonSystemItemDone,
    UIBarButtonSystemItemCancel,
    UIBarButtonSystemItemEdit,
    UIBarButtonSystemItemSave,
    UIBarButtonSystemItemAdd,
    UIBarButtonSystemItemFlexibleSpace,
    UIBarButtonSystemItemFixedSpace,
    UIBarButtonSystemItemCompose,
    UIBarButtonSystemItemReply,
    UIBarButtonSystemItemAction,
    UIBarButtonSystemItemOrganize,
    UIBarButtonSystemItemBookmarks,
    UIBarButtonSystemItemSearch,
    UIBarButtonSystemItemRefresh,
    UIBarButtonSystemItemStop,
    UIBarButtonSystemItemCamera,
    UIBarButtonSystemItemTrash,
    UIBarButtonSystemItemPlay,
    UIBarButtonSystemItemPause,
    UIBarButtonSystemItemRewind,
    UIBarButtonSystemItemFastForward,
    UIBarButtonSystemItemUndo, // iOS 3.0 and later
    UIBarButtonSystemItemRedo, // iOS 3.0 and later
    UIBarButtonSystemItemPageCurl, // iOS 4.0 and later

Oh i did not see the "Translating" from the title..

Nicolas S
  • 5,325
  • 3
  • 29
  • 36
  • And you can't change the style of the buttons on the MFMailComposeViewController, that's not a custom UINavigationBar – AliSoftware Jun 20 '11 at 22:02