摘要:
文字属性textplaceholder //默认使用70%灰色 font textColor textAlignment文字大小adjustsFontSizeToFitWidthminimumFontSize编辑行为editing //是否正在编辑(read-only)clearsOnBeginEditing展现形态borderStyle //默认UITextBorderStyleNone,是UITextBorderStyleRoundedRect时自定义的background无效backgrounddisabledBackgroundproperty //backgrou... 阅读全文
posted @ 2012-07-03 11:28
tx天翔
阅读(2874)
评论(0)
推荐(0)
摘要:
重写UITextField方法:-(CGRect)textRectForBounds:(CGRect)bounds;效果如图:-------->-(CGRect)editingRectForBounds:(CGRect)bounds;@interfaceMYTextField:UITextField@end@implementationMYTextField-(CGRect)textRectForBounds:(CGRect)bounds { int margin =10; CGRect inset =CGRectMake(bounds.origin.x + margin, bounds 阅读全文
posted @ 2012-07-03 09:31
tx天翔
阅读(1416)
评论(0)
推荐(0)
浙公网安备 33010602011771号