创建一个BOOK对象,对其属性进行声明 定义。
@property 属性声明 定义了对属性的赋值
-(void) dealloc 方法在对象销毁的时候进行调用;
#import
@interface Book : NSObject
@property (nonatomic,assign) int price;
@end
#import "Book.h"
@imp...
分类:
其他好文 时间:
2014-06-16 12:05:04
阅读次数:
271
上一次我们讲了MonoBehaviour的前世今生,了解了游戏中的每一个GameObjec都是由脚本控制的,这一次我们开始将Unity中Native
2D中的Sprite,并且使用Animation来让Sprite动起来。在接下来的几篇博客里,我会通过做一个Flappy Bird来讲解Unity中各...
分类:
移动开发 时间:
2014-06-16 07:21:54
阅读次数:
521
TIWGradButton、TIWImageButton
分别是有颜色梯度变化按钮和图像按钮.TIWGradButton 所在单元及继承链:IWCompGradButton.TIWGradButton
主要成员:property Style: TIWGradButtonStyle //这个 Sty....
分类:
数据库 时间:
2014-06-13 20:09:15
阅读次数:
396
一、动画类型Android的animation由四种类型组成:alpha、scale、translate、rotateXML配置文件中alpha渐变透明度动画效果scale渐变尺寸伸缩动画效果translate画面转换位置移动动画效果rotate画面转移旋转动画效果Java
Code代码中Alpha...
分类:
移动开发 时间:
2014-06-13 19:54:50
阅读次数:
397
由于NSUserDefaults
不支持保存自定类,保存的对象需要实现NSCoding协议,不过自定的类型就算实现了NSCoding也不可以保存,可以通过以下方法实现://h文件#import
@interface People : NSObject@property(nonatomic,copy)...
分类:
其他好文 时间:
2014-06-13 17:17:52
阅读次数:
177
TIWLabel //TIWLink //内部链接TIWURL
//外部链接TIWURLWindow //页内框架, 就是 TIWLabel 所在单元及继承链:IWCompLabel.TIWLabel
主要成员:property AutoSize: Boolean ...
.destination1 .current{ display:block;
animation:danru 2s linear infinite; -webkit-animation:danru 2s linear alternate
; ...
分类:
其他好文 时间:
2014-06-12 21:47:05
阅读次数:
344
整理自阮一峰的网络日志123456a心跳cdefgh AB. 1 /* IE
10和Firefox(>= 16)支持没有前缀的animation,而chrome不支持,所以必须使用webkit前缀。 */ 2 3 .hov div{
4 ...
分类:
Web程序 时间:
2014-06-10 08:34:26
阅读次数:
795
独立集和最大独立集:A set of vertices I ? V is called independent if no pair of vertices in I is connected via an edge in G. An independent set is called maximal if by including any other vertex not in I, the independence property is violated....
分类:
其他好文 时间:
2014-06-10 06:30:03
阅读次数:
369
animation-timing-functionanimation-timing-function 规定动画的速度曲线。速度曲线定义动画从一套 CSS
样式变为另一套所用的时间。在平常的取值中,主要有以下几个:值描述linear动画从头到尾的速度是相同的。ease默认。动画以低速开始,然后加快,在...
分类:
Web程序 时间:
2014-06-09 17:28:48
阅读次数:
1146