0

I want set background image for a UITextField with width:300 with UIImageVIew (22x43), but my UIImageVIew doesn't fit with my UITextField

So, how I can achieve this? Thanks!

4

1 に答える 1

0

あなたが試すことができます :

myTextField.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"myImage.png"]];
于 2013-01-16T07:52:12.353 に答える