
如何创建一个多行的UITextField
1个回答
2014-12-21
展开全部
首先建立一个
UITextField
并增加它的
size
是这样的:
CGRect frameRect = textField.frame;
frameRect.size.height = 53;
textField.frame = frameRect;
然后建立一个
UITextView
正是在使得u使我
UITextField
同一地区,并删除其
background color
.现在,它看起来像u有一个多行
TextField!
UITextField
并增加它的
size
是这样的:
CGRect frameRect = textField.frame;
frameRect.size.height = 53;
textField.frame = frameRect;
然后建立一个
UITextView
正是在使得u使我
UITextField
同一地区,并删除其
background color
.现在,它看起来像u有一个多行
TextField!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询