创建一个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
set_input_delay/ set_output_delay 在与时钟选项定义的时钟相关的输入port上定义data arrival time,可将输入延时定义与上升沿或下降沿相关。 如果输入延时与简单的生成时钟相关,到生成时钟的clock arrival time要加到data arri.....
分类:
其他好文 时间:
2014-06-15 23:42:32
阅读次数:
423
TIWEdit //单行文本框, 通过 PasswordPrompt 属性可以作为密码框TIWMemo //多行文本框TIWText //相当于多行的 TIWLabel 或不能编辑的 TIWMemoTIWEdit 所在单元及继承链:IWCompEdit.TIWEdit 主要成员:property T...
分类:
Web程序 时间:
2014-06-15 23:05:42
阅读次数:
275
自动属性.之前定义属性的步骤: private filed + public property.现在的形式:int id{get;set;}.可以分别设置get/set的保护级别(protected/public/private/internal).系统自动生成一个private的字段,并暴露响应的...
分类:
其他好文 时间:
2014-06-15 22:00:59
阅读次数:
228
H:/1007/01_多线程_大任务_MainViewController.m// MainViewController.m
// 多线程-01.大任务
// Created by apple on 13-10-7.
#import "MainViewController.h"
@interface MainViewController ()
@property (weak, nonatom...
分类:
移动开发 时间:
2014-06-15 20:14:40
阅读次数:
250
三角碎片以非常缓慢的速度旋转移动,如果使用JS实现会出现一像素一像素移动的卡顿
使用CSS3会获得非常理想的效果
transform: translate3d(80px, 150px, 0px) rotate(1220deg);
transition: transform 30s linear 0s;
上面一个属性表示图像变换
translate3d(80px, 150px, 0px) 表...
分类:
移动开发 时间:
2014-06-15 17:15:34
阅读次数:
188
需求:利用Swift语言实现OC语言中UIView类方法
[UIView
animateWithDuration:0.5
animations:^{
bgView.alpha= 1;
}];
在Swift语言对应的方法为:
class func animateWithDuration(duration:
NSTimeInterval, animations: ...
分类:
其他好文 时间:
2014-06-15 08:26:50
阅读次数:
192
Object.extend=function(destination, source) {for(varpropertyinsource) { destination[property]=source[property];}returndestination;}Prototype 对Object类进...
分类:
Web程序 时间:
2014-06-15 00:47:58
阅读次数:
188
function Start-GPUpdate{param([String[]]$ComputerName)$code = {$rv = 1 |Select-Object -Property ComputerName, ExitCode$null = gpupdate.exe /force$rv.E...
分类:
其他好文 时间:
2014-06-14 22:03:39
阅读次数:
254
java定时器的使用定时器类Timer在java.util包中。使用时,先实例化,然后使用实例的schedule(TimerTask task, long delay)方法,设定指定的任务task在指定的延迟delay后运行。定时器任务类TimerTask是抽象类,继承并重写其run()方法,可实....
分类:
编程语言 时间:
2014-06-14 21:47:18
阅读次数:
300