2017-07-24 103 views

回答

1

可以使用的UIButton創建一個自定義的UIBarButtonItem。 Todo這個,將你的UIButton作爲UIBarButtonItem的一個參數。


事情是這樣的:

let customButton = UIBarButtonItem(customView: button) 

就拿在我的例子看看: iOS-CustomButton

相關問題