Icomations
Icomations copied to clipboard
Using Icomations On A UIBarButtonItem
Thanks for your work. Its really crisp and I'd really want to use it in an app I'm working on. Could you please assist with how I could use this in a BarButtonItem?
Thank you.
Thanks! What about this?
var icomation = Icomation(frame: CGRectMake(0, 0, 30, 30))
icomation.topShape.strokeColor = UIColor.redColor().CGColor
icomation.middleShape.strokeColor = UIColor.blueColor().CGColor
icomation.bottomShape.strokeColor = UIColor.blackColor().CGColor
icomation.addTarget(self, action: "tapped", forControlEvents: UIControlEvents.TouchUpInside)
navigationItem.leftBarButtonItem = UIBarButtonItem(customView: icomation)
func tapped() {
println(__FUNCTION__)
}
Oh I am unable to set the class of the BarButton to Icomation.swift. Any idea as to how I could achieve that please?
I need to see the project I guess. Can you send me an example of how your project looks like? Are you using storyboards?