rahulg
rahulg

Reputation: 2249

Can I use the default UIBarButton icons provided by Apple in other assets of my app?

Like in UIButton or a UIImageView etc..

If so how do I do that using the StoryBoard or in a Xib

I am able to use the default icons inside UIBarButton items but cannot look them up in normal buttons . A solution using Storyboard would be really nice

Upvotes: 1

Views: 581

Answers (2)

Britto Thomas
Britto Thomas

Reputation: 2120

No you cannot use UIBarButtonItem on other as subview like UIButton. UIBarButtonItem can only over UINavigationBar.

Upvotes: 1

Manuel Escrig
Manuel Escrig

Reputation: 2835

In order to use them you need to extract them using a handy little app called (fittingly enough) iOS Artwork Extractor. I use it all the time when I want to mimic iOS system behaviours.

Download the Xcode project at:

https://github.com/0xced/iOS-Artwork-Extractor

Or another way:

The Other.artwork file is in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/ (you need the SDK).

Use the "iPhoneShop-1.3.jar" program -- available currently here to extract all of the images into a directory.

java -jar iPhoneShop-1.3.jar ARTWORK Other.artwork EXPORT Other

Upvotes: 3

Related Questions