您的位置:首页 > 产品设计 > UI/UE

iosUITextField属性

2014-11-19 23:23 260 查看
@property UITextField *caption;

caption = [[UITextField alloc] initWithFrame:CGRectMake(0,

self.frame.size.height/2,

self.frame.size.width,

32)];

caption.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.5];

caption.textAlignment = NSTextAlignmentCenter;

caption.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;

caption.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;

caption.textColor = [UIColor whiteColor];

caption.keyboardAppearance = UIKeyboardAppearanceDark;

caption.alpha = 0;

caption.tintColor = [UIColor whiteColor];

caption.delegate = self;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: