How can I use cached image from StyleKit to customize my UIButton/UIImageView or object that responds to setImage: or setSelectedImage: messages?
StyleKit provides methods that return cached NSImage/UIImage (such method begins with IBOutletCollection properties that can be used to customize multiple objects that respond to
If
Please read how to generate an image with custom size at runtime.
Please, check out the example project:
-
Checkout the
viewWillAppear(_:) (Objective-C:viewWillAppear: ) method inEXTabBarsAndButtonsViewControllerclass to see how to use image provided byStyleKitto customizeUIButtonorUITabBar. -
Check out the
StyleKitobject inMenuViewControllerin Main.storyboard and its connection toUIImageViewto see usage ofIBOutletCollection. -
Check out the
StyleKitobject inEXTabBarsAndButtonsViewControllerand its connection toUITabBarItemto see usage ofIBOutletCollection.