2010-04-05 9 views

Répondre

2

Ceci est une caractéristique de la classe UIImage elle-même.

- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight 

Vous pouvez affecter l'image résultante à la propriété appropriée de UIButton selon les besoins.

+0

Plus précisément, très probablement la propriété backgroundImage. –

Questions connexes