eg:UIView*blankView = [[UIViewalloc]initWithFrame:CGRectMake(0,0,10,1)];
priceTF.leftView= blankView;
remarkTF.leftView= blankView;
上面卡死
下面正常
eg:UIView*blankView = [[UIViewalloc]initWithFrame:CGRectMake(0,0,10,1)];
UIView*blankView1 = [[UIViewalloc]initWithFrame:CGRectMake(0,0,10,1)];
priceTF.leftView= blankView;
remarkTF.leftView= blankView1;
原因:UIView只能是一个textfiled的子视图,要么是priceTF的,要么是remarkTF的,不可能同时是两个的子视图