IPHONE note
来源:互联网 发布:淘宝众筹定金和尾款 编辑:程序博客网 时间:2024/06/02 13:18
TableViewController:
1 disable selected:willSelectedRowAtIndex:(NSIndexPath *)index{ return nil; }
2 TableView can custom it'stitle foot
3 Adding float title effect:titleForHeaderInSection:(NSInteger)section{return "ss"};
Favoriate background color
[UIColorcolorWithRed:197.0/255.0 green:204.0/255.0 blue:211.0/255.0alpha:1.0];
Generate random number
2 TableView can custom it'stitle foot
3 Adding float title effect:titleForHeaderInSection:(NSInteger)section{return "ss"};
Favoriate background color
[UIColorcolorWithRed:197.0/255.0 green:204.0/255.0 blue:211.0/255.0alpha:1.0];
Generate random number
- // Get random number between 0 and 500
- int x = arc4random() %100;
- // Get random number between 500 and 1000
- int y = (arc4random()% 501) +500);
- //Get random number among a specify number
- (rand()%6)+1
View animation transation:
UIViewAnimationTransitionNone,UIViewAnimationTransitionFlipFromLeft,UIViewAnimationTransitionFlipFromRightUIViewAnimationTransitionCurlU,UIViewAnimationTransitionCurlDown
Animation Transaction: animation同样支持事务,让一群Animation一起提交
Action:
一个Layer管理很多Action,每个Action有一个keylayer.actions=actions(NSMutableDirectory)
Layer执行Action:actionForLayer:forKey.方法
Layer在几种情况下会触发Action, 1被插入一个Layer-Tree, 2被remove一个Layer-Tree 3被replace一个Layer
每个CAAction实现runActionForKey方法,在其中定义Animation,可以实现actionForKey返回一个CAAnimation来指定默认的implite animation
UIViewAnimationTransitionNone,UIViewAnimationTransitionFlipFromLeft,UIViewAnimationTransitionFlipFromRightUIViewAnimationTransitionCurlU,UIViewAnimationTransitionCurlDown
Animation Transaction: animation同样支持事务,让一群Animation一起提交
Action:
一个Layer管理很多Action,每个Action有一个keylayer.actions=actions(NSMutableDirectory)
Layer执行Action:actionForLayer:forKey.方法
Layer在几种情况下会触发Action, 1被插入一个Layer-Tree, 2被remove一个Layer-Tree 3被replace一个Layer
每个CAAction实现runActionForKey方法,在其中定义Animation,可以实现actionForKey返回一个CAAnimation来指定默认的implite animation
Add Image for view background
UIView doesn't support add image to background. The solution is add an ImageView to surface of UIView. And allow user can interaction with its subviews
[imageView setUserInteractionEnabled:YES]
- IPHONE note
- iPhone Backup information/note
- Awesome Note Iphone上的记事本
- note
- note
- NOTE
- note
- Note
- note
- note
- Note
- note
- Note
- Note
- note
- Note
- Note
- Note
- 数据挖掘技术在知识型CRM中的应用研究
- My sql中文乱码问题!
- flex学习
- 25.3.2 USB键盘驱动
- Linux内核的同步机制
- IPHONE note
- 用JSSE定制SSL连接
- String对象创建个数
- MAC平台安装Android sdk
- 25.4 小 结
- file system control (FSCTL)
- 影响搜索引擎排名的因素2009版
- 图像识别软件寻找千里马---招标
- Linux从入门到精通——前言