Augustyniak / RATreeView

Library providing easy-to-use interface for displaying tree structures on iOS and tvOS.
MIT License
2.49k stars 464 forks source link

iOS 13 new UITableViewStyle #275

Open br-zm opened 5 years ago

br-zm commented 5 years ago

RATreeView does not handle the new UITableViewStyle UITableViewStyleInsetGrouped in the method below and the default is not handled.

+ (RATreeViewStyle)treeViewStyleForTableViewStyle:(UITableViewStyle)tableViewStyle
{
  switch (tableViewStyle) {
    case UITableViewStylePlain:
      return RATreeViewStylePlain;
    case UITableViewStyleGrouped:
      return RATreeViewStyleGrouped;
  }
}

and therefore compilation fails as control may reach end of non-void function.

mgfjx commented 5 years ago

pod 'RATreeView', :git => 'https://github.com/mgfjxxiexiaolong/RATreeView' 可以暂时先用我修改的, 估计作者体验生活去了,没时间维护了,简单的加了default: