摘要: 最右侧加图片是以下代码,UIImageView *imgv=[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"right.png"]];text.rightView=imgv;text.rightViewMode = UITextFieldViewModeAlways;如果是在最左侧加图片就换成:text.leftView=imgv;text.leftViewMode = UITextFieldViewModeAlways;UITextField继承自 UIControl,此类中有一个属性contentVert 阅读全文
posted @ 2012-05-25 10:01 worldworld 阅读(278) 评论(0) 推荐(0) 编辑