码迷,mamicode.com
首页 >  
搜索关键字:uilabel    ( 1031个结果
NGUI的字体加粗效果
ngui的UILabel可以通过属性面板(inspector)设置字体的样式:加粗 倾斜 正常等。但是如果通过这里设置了加粗,与实际的加粗不一样,ngui有一个拉伸宽度的变化。这让人觉得很丑 。如下图: 第二种效果就是这种丑的。宽度拉伸,其实也没怎么变粗。最后面的就是用BBCode的实现加粗。更自然...
分类:其他好文   时间:2015-04-09 21:49:16    阅读次数:148
iOS UILabel详解
UILabel 多行文字自动换行 (自动折行) 1.UIView *footerView = [[UIView alloc] initWithFrame:CGRectMake(10, 100, 300, 180)];    2.    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 100, 300, 150)]...
分类:移动开发   时间:2015-04-08 16:33:39    阅读次数:134
UILable常用属性和方法
·UILable是iPhone界面最基本的控件,主要用来显示文本信息。 ·常用属性和方法有: 1、创建 CGRect rect = CGRectMake(100, 200, 50, 50); UILabel *label = [[UILabel alloc] initWithFrame:rect]; 2、text //设置和读取文本内容,默认为nil label.text = @”文本...
分类:其他好文   时间:2015-04-08 16:31:25    阅读次数:193
Lable自适应高度方法的封装
ios7---Lable自适应高度封装 +(UILabel *)getInfoLabel:(UILabel *)label withText:(NSString *)ktext withFont:(CGFloat )kfont withtosize:(CGRect)krect withBackGroundColor:(UIColor *)kbackgroundColor { //内容显示 ...
分类:其他好文   时间:2015-04-08 16:29:35    阅读次数:94
屏幕适配的那些坑
最近在做 iPhone4 和 iPhone6 及 iPhone6 plus 的适配工作。由于历史原因没有用 AutoLayout ,也由于历史原因老代码的布局全是用数字一个一个写死的。这就给适配带来了莫大的困难。比如下面这段代码: 1 2 3 UILabel *infoLabel = [[UILabel alloc] initWithFr...
分类:其他好文   时间:2015-04-08 16:22:52    阅读次数:154
IOS UILabel自动换行
{ UILabel *lb=[[UILabel alloc]initWithFrame:CGRectMake(offset_xx, offset_yy, 0, 0)]; [lb setText:@"fawfwefwaefaewwewaefewafwefa...
分类:移动开发   时间:2015-04-08 12:30:06    阅读次数:136
iOS UILabel详解1
·UILable是iPhone界面最基本的控件,主要用来显示文本信息。 ·常用属性和方法有: 1、创建 CGRect rect = CGRectMake(100, 200, 50, 50); UILabel *label = [[UILabel alloc] initWithFrame:rect]; 2、text //设置和读取文本内容,默认为nil label.text = @”文本...
分类:移动开发   时间:2015-04-04 15:15:07    阅读次数:104
UILabel创建(React Native)
UILabel创建(React Native)...
分类:其他好文   时间:2015-04-04 09:10:28    阅读次数:209
iOS实现旋转
#import "ViewController.h" @interface ViewController () @property (strong, nonatomic)UILabel *label; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do ...
分类:移动开发   时间:2015-04-03 15:44:37    阅读次数:148
iOS UITableViewCell自适应高度
在cell.m文件中 1)初始化方法中: self.lalName=[[UILabel alloc] initWithFrame:CGRectMake(71, 5, 250, 40)]; [self addSubview:self.lalName]; 2)创建方法://给用户介绍赋值并且实...
分类:移动开发   时间:2015-04-03 15:03:56    阅读次数:140
1031条   上一页 1 ... 73 74 75 76 77 ... 104 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!