I like to add a picture (png) to a UITextField. Anyone 开发者_如何学运维has any idea?
Thanks!
Balazs
UITextField *myTextField = [[UITextField alloc] init];
[myTextField setRightViewMode:UITextFieldViewModeAlways];
myTextField.rightView= [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image.png"]];
Use UIImageView.
精彩评论