码迷,mamicode.com
首页 >  
搜索关键字:uilabel 自适应高度    ( 1297个结果
第一贱-UILabel
UILabel *label = [[UILabel alloc]init]; label.frame = CGRectMake(100, 100, 100, 100); label.text = @"我是label---redStar";//设置内容 label.backgroundCol...
分类:其他好文   时间:2014-10-30 18:57:52    阅读次数:173
iframe自适应高度(兼容IE 火狐 谷歌)
分类:其他好文   时间:2014-10-30 11:33:53    阅读次数:188
单例---视图间数据的传递:标签显示输入的内容【多个视图中】
RootViewController.m - (void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor greenColor]; //创建显示文字的label UILabel *label = [[UILabel alloc] initWithFr...
分类:其他好文   时间:2014-10-29 14:57:16    阅读次数:162
100% opacity UILabel over a 50% opacity background (UIView?) UIView是百分之50透明而上面的UILable是100%不透明
So right now I have a UIView with a UILabel in it. I want the background to have an opacity < 1.0 and the label to have an opacity of 1.0. However sin...
分类:其他好文   时间:2014-10-29 12:50:50    阅读次数:143
iOS MKAnnotation协议为地图添加注解
添加地图注解,这个需要用到MKAnnotation这个协议,主要有两个UILabel类型的属性,title和subtitle,当用户点击小别针时候就会把相关信息显示出来,如下图: Google地图实现之三添加注解 - tergol - tergol的博客 大概的操作是这样的,先定义一个继承了MKAnnotation的类,第当需要加上注解的时候,就根据当前的region等信息,实例化出一个对像,...
分类:移动开发   时间:2014-10-27 10:54:34    阅读次数:197
内容自适应UILabel
xcode 6.1File-New-Project..iOs-Application-Simple View Application代码:- (void)viewDidLoad { [super viewDidLoad]; UILabel *labelLoginname ...
分类:其他好文   时间:2014-10-25 21:21:25    阅读次数:189
字体渐变
UILabel * fabLab = [[UILabel alloc]initWithFrame:CGRectMake(50, 140, 200, 30)]; NSMutableAttributedString * aText = [[NSMutableAttributedString al...
分类:其他好文   时间:2014-10-25 20:01:12    阅读次数:123
UILabel iOS中添加文字的控件
非常重要的一个简单控件...
分类:移动开发   时间:2014-10-25 11:58:20    阅读次数:231
UILable
//UILable的大小自适应实例 UILabel *myLable = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 2, 2)];//设定位置与大小 [myLable setFont:[UIFont fontWithName:...
分类:其他好文   时间:2014-10-24 20:45:03    阅读次数:229
iframe自适应高度问题
分类:其他好文   时间:2014-10-24 20:22:54    阅读次数:140
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!