Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up群内的提示消息触发xcode警告 #264
群内的提示消息触发xcode警告 #264
Comments
|
修改群信息时,SessionViewController展示一条群提示消息:你更新了群名称。 xcode提示警告信息: |
|
2020-04-09 14:42:04.537056+0800 GrootDev[81929:4510369] [TableView] Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window. Table view: <UITableView: 0x7fa51d83d400; frame = (0 0; 375 616); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x600003f36190>; layer = <CALayer: 0x6000031f0100>; contentOffset: {0, 273.5}; contentSize: {375, 889.33332824707031}; adjustedContentInset: {64, 0, 0, 0}; dataSource: <NIMSessionTableAdapter: 0x6000031f6740>> |
|
通过UITableViewAlertForLayoutOutsideViewHierarchy断点定位出现问题的代码在NIMSessionLayoutImpl.m第241行: |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

问题检查清单
感谢您向我们提出问题,在提交问题之前,请确认以下事宜:
我已经阅读了组件文档:
《项目结构介绍》
《界面排版自定义》
《新消息类型集成》
《用户信息自定义》
《机器人消息排版指南》
我已经阅读了常见问题, 但是找不到相关解决方案。
我已经阅读了SDK 文档, 但是找不到相关解决方案。
我已经搜索了当前问题, 但是找不到相关解决方案。
问题描述
问题现象
[描述具体问题表现]
是否重现
[重现此问题的步骤]
其它备注
[在这里添加任何其他相关细节]