Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
UITextField我想为宽度:300 和UIImageVIew(22x43)设置背景图像,但我UIImageVIew的不适合我的UITextField
UITextField
UIImageVIew
那么,我该如何实现呢?谢谢!
你可以试试 :
myTextField.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"myImage.png"]];