Huang-Libo
Huang-Libo
@SeveX baseUrl 为什么不直接用 sharedConfig 设置, 想在测试环境和生产环境之间切换的时候直接修改 sharedConfig 的设置就可以了, 写到子类中反而让事情变复杂了
那要切环境的话, 也只能同时使用一个环境吧, 如果个别接口需要使用另一个环境, 直接在子类的 requestUrl 方法里写完整的url即可.
我看了下源码,是这个地方加1和减1造成的, ``` [self addSectionViewCellWithSection:section]; [self addSectionViewCellWithSection:sectionMax]; [self addRowViewCellWithRow:row]; [self addRowViewCellWithRow:rowMax]; [self removeSectionViewCellWithSection:section - 1]; [self removeSectionViewCellWithSection:sectionMax + 1]; [self removeRowViewCellWithRow:row - 1]; [self removeRowViewCellWithRow:rowMax + 1]; ``` 如果去掉加1或者减1,section 的内容就会在滑动的时候变空白,你可能希望通过+1、-1这种trick的方式解决问题,但实际上引入了新的问题,那就是数组越界,这个问题实际上更严重,它会导致闪退。据我分析,你的实际难点是滑动时 section...
@DianQK 我突然想到了一个非常非主流的做法,在此 cell 中添加一个 label 来搞一些事情:这个label的内容根据数据源的 row number 来设置(比如数据源有 10 行数据,我可以在此 label 中设置 10 个换行符),label 在设置约束时把 高度设置为 cellViewSize 的高度一致(宽度当然设置为一个很小的值,避免遮挡DQKFreezeWindowView),cell就能根据数据源来撑起高度了... 请对这个非主流的方案予以斧正!
@willokyes https://github.com/0xxd0/objc4
@coderyi 是的,有可能是xcode的问题,不过我是在集成JPFPSStatus之后才出现这个问题的……
``` (BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.backgroundColor = [UIColor whiteColor]; ............. ............. ............. UIViewController *rootCtr = [[UIViewController alloc] init]; UINavigationController* nav = [[UINavigationController...
iOS 64 位系统引入了 `Tagged Pointer` 技术,在 64 位系统上,本例中生成的字符串是 `NSTaggedPointerString` 类型的,其 retain count 为 2^63-1 ,会一直存在于栈区,所以打印时一直有值。 可以把 @"leichunfeng" 改成中文字符,比如 @"雷纯峰" ,避免系统使用`Tagged Pointer` 技术。 参考链接: http://blog.devtang.com/2014/05/30/understand-tagged-pointer/ https://www.mikeash.com/pyblog/friday-qa-2015-07-31-tagged-pointer-strings.html
代码有冲突 @daoseng33