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
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
添加地图注解,这个需要用到MKAnnotation这个协议,主要有两个UILabel类型的属性,title和subtitle,当用户点击小别针时候就会把相关信息显示出来,如下图:
Google地图实现之三添加注解 - tergol - tergol的博客
大概的操作是这样的,先定义一个继承了MKAnnotation的类,第当需要加上注解的时候,就根据当前的region等信息,实例化出一个对像,...
分类:
移动开发 时间:
2014-10-27 10:54:34
阅读次数:
197
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
//UILable的大小自适应实例 UILabel *myLable = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 2, 2)];//设定位置与大小 [myLable setFont:[UIFont fontWithName:...
分类:
其他好文 时间:
2014-10-24 20:45:03
阅读次数:
229