摘要:
重定义 UITextField,然后方便在工程中做统一的修改参考代码:@implementation UITextField(custom)-(void)drawRect:(CGRect)rect{ UIImage* image = [UIImage imageNamed:@"输入框.png"]; image = [image stretchableImageWithLeftCapWidth:image.size.width/2topCapHeight:image.size.height/2]; self.textAlignment = UITextAlignmentLef 阅读全文
posted @ 2012-01-16 18:07 星尘的天空 阅读(267) 评论(0) 推荐(0) 编辑