How can I change the label “Cancel” from modal segue in Apple Watch

后端 未结 4 1708
无人及你
无人及你 2021-01-04 01:38

How to change the label appearing at the top left corner that says \"Cancel\" when I open a modal view... I would like it to be a button with an image.

4条回答
  •  被撕碎了的回忆
    2021-01-04 01:54

    A working, albeit limited, method to put in image in the title is to use an emoji character. As of Xcode 7.1 the simulator seems to suffer from a bug and displays wrong characters there, but it works perfectly fine on the device.

    setTitle("Hello world! 

提交回复
热议问题