Back-like arrow on iOS 7

前端 未结 4 1309
深忆病人
深忆病人 2021-02-20 07:14

I need to add a left bar button item in my app that looks like system back button, but is not the system back button, since it will appear on view controller that is the only vc

4条回答
  •  孤独总比滥情好
    2021-02-20 07:55

    Look at the UIBarButtonSystemItem enum under contants in the UIBarButtonItem documentation:

    https://developer.apple.com/library/IOs/documentation/UIKit/Reference/UIBarButtonItem_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40007519-CH3-SW2

    These are all of the button styles provided by Apple:

    typedef enum {
       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
    } UIBarButtonSystemItem;
    

    Perhaps rewind or undo would be close enough for you.

提交回复
热议问题