Hi! I'm using UIImage for stretchable buttons now:
UIImage *buttonBackground = [UIImage imageNamed"Button"];
buttonBackground = [buttonBackground stretchableImageWithLeftCapWidth:15 topCapHeight:0];
[self.logoutButton setBackgroundImage:buttonBackground forState:UIControlStateNormal];
(snippet taken from
Tips for Using UIImage Objective-C Class)
Can you advice a more elegant way to implement stretchable UI please?
UIImage *buttonBackground = [UIImage imageNamed"Button"];
buttonBackground = [buttonBackground stretchableImageWithLeftCapWidth:15 topCapHeight:0];
[self.logoutButton setBackgroundImage:buttonBackground forState:UIControlStateNormal];
(snippet taken from
Tips for Using UIImage Objective-C Class)
Can you advice a more elegant way to implement stretchable UI please?