LoginSignup
21
5

More than 5 years have passed since last update.

【Swift4】UIBarButtonSystemItem一覧

Posted at

ナビゲーションバーに配置するUIBarButtonSystemItem一覧メモ。

ボタン一覧

定型的なアクションに対応したボタンは以下のとおり。

case アイコン
done done.png
cancel cancel.png
edit edit.png
save save.png
add add.png
compose compose.png
reply reply.png
action action.png
organize organize.png
bookmarks bookmarks.png
search search.png
refresh refresh.png
stop stop.png
camera camera.png
trash trash.png
pause pause.png
rewind rewind.png
fastFoward fastForward.png
undo undo.png
redo redo.png

設置方法

storyboardから

UIBarButtonSystemItem.png

コードから

let addButton = UIBarButtonItem(barButtonSystemItem: .add, target: self, action: #selector(insertNewObject(_:)))
navigationItem.rightBarButtonItem = addButton

参考

21
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
5