About icons that can be used for UIBarButtonItem

Asked 2 years ago, Updated 2 years ago, 99 views

Developed with xcode 6.2.
I am using storyboard, but if there is a way to use swift, please let me know.

To UIBarButtonItem

https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/BarIcons.html
36 icons on
(shown below) 36 icons

I would like to specify , but is this just an explanatory sample?

https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIBarButtonItem_Class/index.html#//apple_ref/swift/enum/UIBarButtonSystemItem
to

enum UIBarButtonSystemItem:Int{
    case Done
    case Cancel
    case Edit
    case Save
    case Add
    case FlexibleSpace
    case FixedSpace
    case Composer
    case reply
    case Action
    case Organize
    case Bookmarks
    case Search
    case Refresh
    case Stop
    case Camera
    case Trash
    case Play
    case Pause
    case Rewind
    case FastForward
    case Undo
    case Redo
    case PageCurl
}

Does it say that this corresponds to the list that can be selected in the Attributes Inspector Identifier of the Bar Button Item on the storyboard, so do you understand that if you want to display anything other than this as an icon, you need to prepare a separate image?

swift xcode6 ios8 storyboard

2022-09-29 22:45

1 Answers

Yes.
The icon that is often used in Apple apps is UIBarButtonSystemItem and you can use it freely.If you want to use other icons, you need to prepare them yourself


2022-09-29 22:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.