在看苹果官方的Swift Language的时候,遇到实验:Write an extension for the Double type that add an absoluteValue property. 在直接使用extension加入了属性的时候,出现错误(当然这时候代码还没写完,Pla.....
分类:
编程语言 时间:
2014-10-31 09:59:40
阅读次数:
191
YUI Compressor 压缩 JavaScript 的内容包括:移除注释移除额外的空格细微优化标识符替换(Identifier Replacement)YUI Compressor 包括哪些细微优化呢?object["property"] ,如果属性名是合法的 JavaScript 标识符(注...
分类:
Web程序 时间:
2014-10-31 09:52:31
阅读次数:
185
?@property(nonatomic) CGPoint contentOffset; ?这个属性用来表示UIScrollView滚动的位置? ?@property(nonatomic) CGSize contentSize;? ?这个属性用来表示UIScrollView内容的尺寸,滚动范围(能滚多远) ...
分类:
其他好文 时间:
2014-10-30 22:51:14
阅读次数:
276
Namespace:System.DiagnosticsAssembly:System(in System.dll)SyntaxC#C++F#VB[BrowsableAttribute(false)]publicStreamReaderStandardOutput { get; }Property ...
分类:
其他好文 时间:
2014-10-30 18:47:11
阅读次数:
175
主要利用ObjectiveC的CAPI中函数:voidobjc_setAssociatedObject(idobject,constvoid*key,idvalue,objc_AssociationPolicypolicy)idobjc_getAssociatedObject(idobject,constvoid*key)原理详细参见官方的ObjectiveCRuntimeReference.好了,现在直接写怎么做了.1.在定义类别之前,..
分类:
其他好文 时间:
2014-10-30 17:19:47
阅读次数:
207
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...