昨天一位网友问我怎样用代码改变UITextField的大小前提是该UITextField是xib创建的,不是代码写的)
1 -(
void)click
2 {
3 UITextField *textField = (UITextField*)[self.view viewWithTag: 1];
4 if (textField.tag== 1) {
5 textField.frame=CGRectMake( 240, 320, 90, 90);
6 }
7 }
2 {
3 UITextField *textField = (UITextField*)[self.view viewWithTag: 1];
4 if (textField.tag== 1) {
5 textField.frame=CGRectMake( 240, 320, 90, 90);
6 }
7 }