首先,过度的创建NSDateFormatter
用于NSDate
与NSString
之间转换,会导致App卡顿,打开Profile工具查一下性能,你会发现这种操作占CPU比例是非常高的。
阅读全文

首先,过度的创建NSDateFormatter
用于NSDate
与NSString
之间转换,会导致App卡顿,打开Profile工具查一下性能,你会发现这种操作占CPU比例是非常高的。
阅读全文
iOS dev
@tingxins