1. Obj_C 中结构体的使用和释放
TestStruct *newTestStruct(int value)
{
TestStruct *ret = malloc(sizeof(TestStruct));
ret->value = value;
return ret;
}
TestStruct *x = newTestStruct(3);
free(x); // release the space
2. UISwitch显示为橘黄色的背景(文档未记录)。
@interface UISwitch (extended)
- (void) setAlternateColors:(BOOL) boolean;
@end
3. CALayer( the model class for layer-tree objects)
每个UIView都有一个根CALayer,其所有的(绘制-draw)视觉效果(大部分属性都可animate)都是在这个层上进行的。CALayer可影响UIView的外观特性有:层的size, backgroundColor, content(image or content drawed by Core Graphics); cornerRect, shadow, transform etc.
http://sue602.blog.163.com/blog/static/31495307201103034736509/
+ 自绘图形demo
4. iphone的动画效果类型及实现方法(UIView层面,CATransition)
+ The following properties of the UIView class are animatable:
Reference : http://www.voland.com.cn/the-effect-of-the-type-and-implement-for-iphone
浙公网安备 33010602011771号