码迷,mamicode.com
首页 >  
搜索关键字:uilabel 调整行间距 计算frame    ( 1043个结果
NGUI UILabel文字宽度和 UITweener
做个记录 方便别人和自己以后查找.NGUI UILabel 文字宽度 高度 mLabel.GetComponent().getLabWidth() mLabel.GetComponent().getLabHeight();NGUI UITweener 参考 :http://dsqiu.iteye.....
分类:其他好文   时间:2014-11-04 14:57:44    阅读次数:220
UITextView上添加默认文字
1. 实现UITextView的代理方法 text.view.delegate = self; 2. 在UITextView上覆盖UILabel ps:必须实现 label.enabled = NO; label.backgroundColor = [UIColor clearColor]; 3. 在UITextView - Delegate中实现 -(void)textVie...
分类:其他好文   时间:2014-11-04 11:07:23    阅读次数:204
简述UILabel的属性和用法
UILabel属性1.text:设置标签显示文本。label.text = @"我是Label";2.attributedText:设置标签属性文本。NSString*text=@"first";NSMutableAttributedString*textLabelStr=[[NSMutableAt...
分类:其他好文   时间:2014-11-02 16:26:01    阅读次数:250
图片浏览器--UI编程
//  QYViewController.h //  图片浏览器 #import  @interface QYViewController : UIViewController - (IBAction)nightMode:(UISwitch *)sender; - (IBAction)imageSizeChanged:(UISlider *)sender; - (IBAc...
分类:其他好文   时间:2014-11-01 14:58:08    阅读次数:166
第一贱-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
单例---视图间数据的传递:标签显示输入的内容【多个视图中】
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
1043条   上一页 1 ... 87 88 89 90 91 ... 105 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!