yestin
yestin
_chatSocket = [[GCDAsyncSocket alloc]initWithDelegate:self delegateQueue:dispatch_get_main_queue()]; 这里用main queue好吗? 用 新create的serial queue如何?
``` static inline NSInteger UIAdapter (float x){ //1 - 分机型 特定的比例 //2 - 屏幕宽度按比例适配 CGFloat scale = 414 / SCREEN_WIDTH; return (NSInteger)x /scale; } ``` 为何不用 `return x /scale;`
#### 问题 当collectionView的delegate未实现代理方法'collectionView:didSelectItemAtIndexPath:'时,无法hook #### 本次提交/优化 optimize: 当collectionView的delegate未实现代理方法'collectionView:didSelectItemAtIndexPath:'时,仍然可以hook添加额外逻辑 #### 用例,如下 测试:注释掉 使用者HZCategoryView.m中 line:38~42的 '- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath'方法实现。 优化前:hook无效 优化后:hook有效
大佬,这种报错怎么解决,Archive没问题,Xcode run debug报错 ``` duplicate symbol '_OBJC_IVAR_$_WechatAuthSDK._status' in: /Users/MyUserName/Library/Developer/Xcode/DerivedData/MyAppName-dtjtnlsvvdfpflcegruhtnqcbgkj/Build/Products/Debug-iphoneos/libRCTWeChat.a(WechatAuthSDK.o) /Users/MyUserName/workspace/MyAppName/node_modules/react-native-wechat-lib/ios/libWeChatSDK.a(WechatAuthSDK.o) duplicate symbol '_OBJC_IVAR_$_WechatAuthSDK.timer' in: /Users/MyUserName/Library/Developer/Xcode/DerivedData/MyAppName-dtjtnlsvvdfpflcegruhtnqcbgkj/Build/Products/Debug-iphoneos/libRCTWeChat.a(WechatAuthSDK.o) /Users/MyUserName/workspace/MyAppName/node_modules/react-native-wechat-lib/ios/libWeChatSDK.a(WechatAuthSDK.o) ```
hello 兄台, 为什么 在里面写了一个刷新 就不行了呢? 不信 你试试你的demo - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath { NSLog(@"section %ld row --- %ld",indexPath.section, indexPath.row); [collectionView reloadData]; }
when i set " the bubble container's top = bubble top label's bottom + 10 " , unexpectedly, found that the text in the messageBubbleContainerView is no longer be vertically...
When I directly set " _messageAvatarHorizontallySpaceWithSuperView = 16 " , believing it's perfect that the space is 16 . But found that the space is 24. Please help me to...
"NSInvalidLayoutConstraintException" crash when app launch for a certain long time , I found the crash source: file: NSLayoutConstraint+Convenient.m code: [self constraintWithItem:view attribute:NSLayoutAttributeCenterX relatedBy:NSLayoutRelationEqual toItem:otherView attribute:NSLayoutAttributeCenterY multiplier:1. constant:0.] should be fixed...
代码中 [[GCDAsyncSocket alloc] initWithDelegate:delegate delegateQueue:dispatch_get_main_queue()]; 使用main_queue 导致回调在主线程, 这样不好吧...给一下 你项目中实际怎么处理的啊