CodeSlaveZhang

Results 6 issues of CodeSlaveZhang

### The language of WCDB Objective-C ### The version of WCDB v1.0.5 ### The platform of WCDB iOS, macOS ### The installation of WCDB Git clone ### What's the issue?...

iOS 13.3 缓存完之后重新播放crash的问题 VIMediaDownloader.m中 - (void)processActions函数 在 if (action.actionType == VICacheAtionTypeLocal) { NSError *error; NSData *data = [self.cacheWorker cachedDataForRange:action.range error:&error]; 后面加上判断 即可解决 if (self.cacheWorker.cacheConfiguration.progress == 1) { [self.delegate actionWorker:self didReceiveData:data...

感谢之情溢于言表!!!!!!!! 跪谢了!!!!!!!!! 你知道下载一夜只下载800KB的痛苦么!!!! 超级感谢!!!!!!!

随便找一张iPhone拍摄的全景,放大、拖动。内存就爆表了。 建议使用CATailedLayer进行分片渲染。而不是使用CoreGraphics进行裁切(这样有一个峰值内存占用) 我这边已经有使用CATailedLayer渲染的修改版本,但是还存在一些问题。如果作者需要我可以提供代码。

文本的Paragraph Style设置居中,在计算布局的时候,左侧缩进后右侧并没有缩进。这将导致计算的结果实际上是居右的。 嘛 算了我描述好像不太清楚。总之就是设置居中看起来像是居右。 原始代码: --- - (void)setCTLine:(_Nonnull CTLineRef)CTLine { if (_CTLine != CTLine) { if (CTLine) CFRetain(CTLine); if (_CTLine) CFRelease(_CTLine); _CTLine = CTLine; if (_CTLine) { _lineWidth = CTLineGetTypographicBounds(_CTLine,...

- (void)sortWithValuesUsingComparator:(NSComparator NS_NOESCAPE)cmptr{ //[self.readWriteLock lock]; NSArray *valuesBefore = _mutableValues.copy; NSArray *keysBefore = _mutableKeys.copy; [_mutableValues sortUsingComparator:cmptr]; [_mutableKeys sortUsingComparator:^NSComparisonResult(id _Nonnull key1, id _Nonnull key2) { ///find the obj before sort operation with...