? ??
? ? 注:由于已经将UITextField*text定义为全局变量,所以在新建UITextField时只需写出它的名称text。
?
? ? text=[[UITextField alloc]initWithFrame:CGRectMake(85, 220, 250, 40)];
? ? text.borderStyle=UITextBorderStyleRoundedRect;
? ? text.backgroundColor=[UIColor grayColor];
? ? text.placeholder=@"