Next/Previous Keyboard Toolbar iOS7

前端 未结 7 1112
情书的邮戳
情书的邮戳 2021-02-01 05:33

Currently, I am trying to set the next/previous buttons on my keyboard toolbar to the new, sleek iOS 7 back button/forward buttons that get put in navigation controllers to go b

7条回答
  •  猫巷女王i
    2021-02-01 05:38

    Using Xcode 7.3, you can also just enter a symbol as the title for the Bar Item. This works both in code and in Interface Builder:

    • Place your cursor where you want the symbol to appear (eg, title box in IB or within quotes in code).
    • In Xcode's menu, click Edit, then Emoji & Symbols. (Alternatively, press control-command-space to bring up the list of characters.)
    • In the search box, type less or greater.
    • Then, select the symbol you want.

    The less-than and greater-than symbols are colored blue in the toolbar by default.

    In code:

    backButton.title = "<"
    

    In IB:

提交回复
热议问题