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 inEXTabBarsAndButtonsViewController
class to see how to use image provided byStyleKit
to customizeUIButton
orUITabBar
. -
Check out the
StyleKit
object inMenuViewController
in Main.storyboard and its connection toUIImageView
to see usage ofIBOutletCollection
. -
Check out the
StyleKit
object inEXTabBarsAndButtonsViewController
and its connection toUITabBarItem
to see usage ofIBOutletCollection
.