码迷,mamicode.com
首页 > 移动开发 > 详细

iosUITextField属性

时间:2014-11-19 23:44:19      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:style   blog   io   ar   color   os   sp   on   div   

 

@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;

 

iosUITextField属性

标签:style   blog   io   ar   color   os   sp   on   div   

原文地址:http://www.cnblogs.com/wcLT/p/4109492.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!