I'm newer with Swift's Apple. I had read an article from Here
But don't know how to do something like that(or just simple don't know how to use resizableImageWithCapInsets
with Swift). Please help me to use resizableImageWithCapInsets
in Swift
Generic way in Xcode 6.1 is:
var myImage = UIImage(named: "navbar.png")!
let myInsets : UIEdgeInsets = UIEdgeInsetsMake(13, 37, 13, 37)
myImage = myImage.resizableImageWithCapInsets(myInsets)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With