LuckyLuke
LuckyLuke

Reputation: 49097

Translating text on buttons when using mfmailcomposeviewcontroller

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".

Upvotes: 0

Views: 1200

Answers (2)

AliSoftware
AliSoftware

Reputation: 32681

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

Upvotes: 1

Nicolas S
Nicolas S

Reputation: 5365

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..

Upvotes: 0

Related Questions