摘要:
1、向上取整数向上:A被除数,B除数。(A+B-1)/B 阅读全文
posted @ 2014-04-12 17:56
ygm900
阅读(326)
评论(0)
推荐(0)
摘要:
一、类Class中的属性property 在ios第一版中,我们为输出口同时声明了属性和底层实例变量,那时,属性是oc语言的一个新的机制,并且要求你必须声明与之对应的实例变量,例如:@interface MyViewController :UIViewController{ UIButton *myButton;}@property (nonatomic, retain) UIButton *myButton;@end 最近,苹果将默认编译器从GCC转换为LLVM(low level virtual machine),从此不再需要为属性声明实例变量了。如果LLVM发现一个没有匹配实例... 阅读全文
posted @ 2014-04-12 14:02
ygm900
阅读(29599)
评论(3)
推荐(3)
浙公网安备 33010602011771号