Gaozn

Results 18 issues of Gaozn

After a while in the background, switch back to the APP, self.webserver.isrunning is always true, but in fact the local server has stopped running

bug

我只使用了JXPagingListContainerView这个类。 我找到didClickSelectedItem这个方法,断点都会走,但是页面没任何反应 public func didClickSelectedItem(at index: Int) { guard checkIndexValid(index) else { return } willAppearIndex = -1 willDisappearIndex = -1 if currentIndex != index { listWillDisappear(at: currentIndex) listWillAppear(at: index) listDidDisappear(at:...

我返回的view 存在frame.但父视图的frame为0

在 SuspendCenterPageVC里 sectionheader会停留在原来的位置

我的cell是使用storyboard创建的。TYAttributedLabel是一个固定高度的view,我在配置Cell时使用- (void)appendView:(UIView *)view;添加个宽高都小于TYAttributedLabel的label, 然后使用- (void)appendText:(NSString *)text;拼接了一个文本。但当我运行时,发现前者view和后者text不在同一水平线上(前者高,后者低)。然后我尝试把TYAttributedLabel的高度设置为更大的值,布局就显示正常了。这是怎么回事呢?

[text enumerateStringsMatchedByRegex:@"" usingBlock:^(NSInteger captureCount, NSString *const __unsafe_unretained *capturedStrings, const NSRange *capturedRanges, volatile BOOL *const stop) { TYImageStorage *imageStorage = [[TYImageStorage alloc]init]; imageStorage.cacheImageOnMemory = YES; NSURL *url = [NSURL URLWithString:capturedStrings[1]]; imageStorage.placeholdImageName...

let imgText = NSAttributedString.yy_attachmentString(withContent: img, contentMode: .center, attachmentSize: img?.size ?? CGSize.zero, alignTo: Font(size: 15), alignment: .center) 我使用图片生成的NSAttributedString ,当我使用UILabel时加载不出来