如何分离左视图/ textview iOS 7?
问题描述:
是否有可能使用这个设计从一些苹果的库文本域?如何分离左视图/ textview iOS 7?
它是原生搭载iOS 7的联系人的标准文本框编辑。如果这是不可能的,如何在这张图片中使用leftview和textfield之间的分隔符?
答
这些分隔符只是视图,但宽度为1像素,高度等于单元高度。
UIView *view =[[UIView alloc] initWithFrame:CGRectMake(100,0,1,30)];
view.backgroundColor =[uicolor lightGreyColor];
[add it as subview to your view]
答
这看起来更像是一个'UITableViewCell'然后'UITextField'。你确定它是'UITextField'吗? – Popeye
看在你的iphone/ipad /模拟器的“联系人”应用程序,打开一个联系人,然后按屏幕右上方的“编辑”,你会看到:) –
是的 - 这绝对是一个'UITableViewCell'不是'UITextField '或'UITextView'。看看这些http://stackoverflow.com/questions/6001852/uitableview-edit-mode http://behindtechlines.com/2012/06/enabling-configuring-uitableview-edit-mode/ http:// stackoverflow.com/questions/17591121/uitableview-cell-edit – Popeye