摘要:
1.背景色: (http://stackoverflow.com/questions/2259929/iphone-navigationbar-custom-background)网上说用category给UINavigationBar重写drawRect: @implementation UINa 阅读全文
posted @ 2016-10-10 17:10
angelfeather
阅读(169)
评论(0)
推荐(0)
摘要:
UIButton是一个标准的UIControl控件,所以如果你对UIControl不甚了解还是先看一下我的另一篇博文:《UIControl IOS控件编程》 一、创建 两种方法: 1. 常规的 initWithFrame UIButton *btn1 = [[UIButton alloc]initW 阅读全文
posted @ 2016-10-10 17:10
angelfeather
阅读(143)
评论(0)
推荐(0)
摘要:
详细使用: UILabel *label = [[UILabelalloc] initWithFrame:CGRectMake(0, 0, 75, 40)]; //声明UIlbel并指定其位置和长宽 label.backgroundColor = [UIColorclearColor]; //设置l 阅读全文
posted @ 2016-10-10 17:09
angelfeather
阅读(231)
评论(0)
推荐(0)
摘要:
一、UILabel (1)初始化UILabel UILabel *scoreLabel = [ [UILabel alloc ] initWithFrame:CGRectMake((self.bounds.size.width / 2), 0.0, 150.0, 43.0) ]; scoreLabe 阅读全文
posted @ 2016-10-10 17:08
angelfeather
阅读(106)
评论(0)
推荐(0)
摘要:
iPhone SDK提供了三个类来管理位置信息:CLLocation CLLocationManager 和 CLLHeading(不常用)。除了使用GPS来获取当前的位置信息外,iPhone也可以基于WiFi基站和无线发射塔来获得位置信息。GPS的精度 最高,可以精确到米级别,但是也最耗电。 CL 阅读全文
posted @ 2016-10-10 17:07
angelfeather
阅读(156)
评论(0)
推荐(0)
摘要:
最普通动画: //开始动画 [UIView beginAnimations:nil context:nil]; //设定动画持续时间 [UIView setAnimationDuration:2]; //动画的内容 frame.origin.x += 150; [img setFrame:frame 阅读全文
posted @ 2016-10-10 17:06
angelfeather
阅读(86)
评论(0)
推荐(0)
摘要:
1,创建并使用一个UINavigationControllerUINavigationController *aNav = [[UINavigationController alloc] init];然后添加一个视图进去,否则导航栏也没有意义的UIViewController *aView = [[ 阅读全文
posted @ 2016-10-10 17:05
angelfeather
阅读(96)
评论(0)
推荐(0)
Xcode10
13款非常实用的编辑器--找了好久 终于找到拉!!
浙公网安备 33010602011771号