摘要: //初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)]; //设置边框样式,只有设置了才会显示边框样式 text.borde... 阅读全文
posted @ 2015-09-22 21:48 Joe.Smith 阅读(288) 评论(0) 推荐(0)
摘要: 第一步: 在你的textfield类中的.h文件中写入委托声明 #import @interface ViewController1:UIViewController @end 第二步:然后再去你的.m文件中进行实现 //密码文本框 UITextField *passtext... 阅读全文
posted @ 2015-09-22 21:47 Joe.Smith 阅读(281) 评论(0) 推荐(0)
摘要: //初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)]; //设置边框样式,只有设置了才会显示边框样式 text.borde... 阅读全文
posted @ 2015-09-22 21:45 Joe.Smith 阅读(744) 评论(0) 推荐(0)