[关闭]
@fiy-fish 2016-06-27T14:17:40.000000Z 字数 1412 阅读 1191

未整理知识

未分类


NSTextStorage

NSTextStorage 继承于NSMutableAttributedString

NSTextStorage 的主要作用

1.Layout manager
addLayoutManager 添加
removeLayoutManager 删除


静态数组,,,这种写法什么意思???

  1. static NSArray * kStylePropertyNames() {
  2. static NSArray *_stylePropertyNames = nil;
  3. static dispatch_once_t onceToken;
  4. dispatch_once(&onceToken, ^{
  5. //TODO: 这个highlighted在tableview滚动到的时候会设置下(即使cell的selectStyle为None),然后就造成resetText,很鸡巴,耗费性能,这个似乎没辙,实在有必要,后期+个属性来开关
  6. _stylePropertyNames = @[@"font",@"textAlignment",@"textColor",@"highlighted",
  7. @"highlightedTextColor",@"shadowColor",@"shadowOffset",@"enabled",@"lineHeightMultiple",@"lineSpacing"];
  8. });
  9. return _stylePropertyNames;
  10. }

关于KVO的一些问题


函数 extern double fmin(double, double); 获取两个浮点值的最小值


一些不常用的系统方法


Xcode报错 linker command failed with exit code 1

这个错误是引入静态库,产生了冲突



iOS--lipo命令


linker command failed with exit code 1

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注