文件名称:ios-自定义三级分组.zip
文件大小:66KB
文件格式:ZIP
更新时间:2022-07-31 13:29:49
列表
自定义三级分组, 拓展性强,可以使用一个 tableview 实现多级分组,只需要定义好每个分组的级别, 根据级别调整界面显示就可以了, 界面实现了可以选择全部,也可以选择分组的全部 if (model.levelType == Level_Type_1) { self.selectBT_X_Constraint.constant = 13; }else if (model.levelType == Level_Type_2){ self.selectBT_X_Constraint.constant = 26; }else{ self.selectBT_X_Constraint.constant = 0; } 界面很糙,原理很简单,欢迎吐槽
【文件预览】:
自定义三级分组
----自定义三级分组.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(24KB)
--------xcuserdata()
----自定义三级分组UITests()
--------_______UITests.m(1KB)
--------Info.plist(680B)
----自定义三级分组Tests()
--------_______Tests.m(909B)
--------Info.plist(680B)
----自定义三级分组()
--------GoodsSelectCategoryViewController.xib(3KB)
--------Assets.xcassets()
--------main.m(344B)
--------GoodLevelTableViewCell.xib(5KB)
--------MyTestModel.m(676B)
--------AppDelegate.h(287B)
--------AppDelegate.m(2KB)
--------Base.lproj()
--------GoodsSelectCategoryViewController.h(252B)
--------MyTestModel.h(749B)
--------ViewController.h(225B)
--------GoodLevelTableViewCell.h(635B)
--------GoodLevelTableViewCell.m(1KB)
--------GoodsSelectCategoryViewController.m(8KB)
--------Info.plist(1KB)
--------ViewController.m(506B)