Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Roman Oparin

macrumors newbie
Original poster
Jul 21, 2013
2
0
Hi! I'm using UIImage for stretchable buttons now:

UIImage *buttonBackground = [UIImage imageNamed:mad:"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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.