主要利用ObjectiveC的CAPI中函数:voidobjc_setAssociatedObject(idobject,constvoid*key,idvalue,objc_AssociationPolicypolicy)idobjc_getAssociatedObject(idobject,constvoid*key)原理详细参见官方的ObjectiveCRuntimeReference.好了,现在直接写怎么做了.1.在定义类别之前,..
分类:
其他好文 时间:
2014-10-30 17:19:47
阅读次数:
207
Functions
transition.newEasing(action, easingName, more)
为图像创造效果
transition.execute(target, action, args)
执行一个动作效果
transition.rotateTo(target, args)
将显示对象旋转到指...
分类:
其他好文 时间:
2014-10-30 15:24:28
阅读次数:
298
MainViewController.h
@interface RootViewController : UIViewController
@property(nonatomic, retain)NSDictionary *dic;
@property(nonatomic, retain)NSArray *allKeys;
MainViewController.m
- (void)view...
分类:
其他好文 时间:
2014-10-30 11:52:11
阅读次数:
188
RootViewController.h
@interface RootViewController : UIViewController {
BOOL Close[15]; //用于存放每一组的收起展开状态 YES 是收起 NO是展开
UITableView *_tableView;
}
@property(nonatomic, retain)NSArray *da...
分类:
其他好文 时间:
2014-10-30 11:50:52
阅读次数:
113
设置带有导航栏的根视图控制器
RootViewController.h
@interface RootViewController : UIViewController
{
UITableView *_tableView;
}
@property(nonatomic, retain)NSArray *data; //存放原本的数据
@property(nonatomic, reta...
分类:
其他好文 时间:
2014-10-30 11:50:28
阅读次数:
182
转自:http://blog.csdn.net/andyhuabing/article/details/7381879Android 属性系统 Property service 设定分析在Window中有个注册表的东东,可以存储一些类似key:value的键值对,而在android平台上也有类似的机...
分类:
移动开发 时间:
2014-10-30 10:56:09
阅读次数:
250
细数AutoLayout以来UIView和UIViewController新增的相关API – UIViewController篇UILayoutSupport@property(nonatomic,readonly,retain)idtopLayoutGuideNS_AVAILABLE_IOS(7...
jQuery 效果函数方法描述animate()对被选元素应用“自定义”的动画clearQueue()对被选元素移除所有排队的函数(仍未运行的)delay()对被选元素的所有排队函数(仍未运行)设置延迟dequeue()运行被选元素的下一个排队函数fadeIn()逐渐改变被选元素的不透明度,从隐藏到...
分类:
Web程序 时间:
2014-10-29 16:15:38
阅读次数:
185
-webkit-animation: name duration timing-function delay iteration_count direction;(name duration timing-function delay iteration-count direction play-s...
分类:
Web程序 时间:
2014-10-29 16:12:48
阅读次数:
202
I have a UIView and I'm trying to set its layer properties.self.colorSwatch = [[UIView alloc] initWithFrame:CGRectMake(400, 150, 100, 100)];self.color...
分类:
其他好文 时间:
2014-10-29 12:39:13
阅读次数:
143