2013年9月7日
摘要: IOS-TextField知多少分类:IOS编程2012-10-28 20:449936人阅读评论(6)收藏举报//初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)];//设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UITextBorderStyleRoundedRect;typedef enum { UITextBorderStyleNone, UITextBorderStyleLine, UIT... 阅读全文
posted @ 2013-09-07 11:30 flower42 阅读(159) 评论(0) 推荐(0) 编辑
摘要: //用来显示“用户名”的label//初始化textfield并设置位置及大小UILabel* label1 = [[UILabelalloc]initWithFrame:CGRectMake(15,65,70,30)]; label1.backgroundColor= [UIColorclearColor]; label1.font= [UIFontfontWithName:@"Helvetica-Bold"size:18]; label1.text=@"用户名"; label1.textColor= [UIColorwhiteColor]; [vie 阅读全文
posted @ 2013-09-07 11:30 flower42 阅读(154) 评论(0) 推荐(0) 编辑