I have a UITextfield
like so:
UITextfield *name = [[UITextField alloc] initWithFrame:CGRectMake(30, 210, 100, 34)];
name.borderStyle = UITextBorderStyleRoundedRect;
name.backgroundColor = [UIColor whiteColor];
name.font = [UIFont systemFontOfSize:12];
name.leftView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"icon.png"]];
If I have the following UITextfield
setup, how many points is the UIImage
suppossed to be? Is it 34 by 34 or a little smaller? I know, if it's 34 points by 34 points I will have to make .png
s 34x34, 68x68 and 92x92 for x
, 2x
, and 3x
pixel displays.
It's frame will be
x=0
,y=0
,width = width of the image
,height = height of the image