{"id":20073313,"url":"https://github.com/1691665955/mztableview","last_synced_at":"2025-10-24T04:59:04.621Z","repository":{"id":60322042,"uuid":"440411494","full_name":"1691665955/MZTableView","owner":"1691665955","description":"高性能横向TableView，支持cell复用","archived":false,"fork":false,"pushed_at":"2023-05-03T11:41:49.000Z","size":7304,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T05:33:12.980Z","etag":null,"topics":["horizontal","ios","swift","tableview"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1691665955.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-21T06:18:27.000Z","updated_at":"2022-06-09T02:37:39.000Z","dependencies_parsed_at":"2024-11-13T14:47:50.287Z","dependency_job_id":"3656f7a7-88a5-455b-a0ec-ed998b1c1618","html_url":"https://github.com/1691665955/MZTableView","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"71bc2896d5cbede201688ceab4a5e862b19c4a66"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1691665955%2FMZTableView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1691665955%2FMZTableView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1691665955%2FMZTableView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1691665955%2FMZTableView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1691665955","download_url":"https://codeload.github.com/1691665955/MZTableView/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241503953,"owners_count":19973147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["horizontal","ios","swift","tableview"],"created_at":"2024-11-13T14:44:50.131Z","updated_at":"2025-10-24T04:58:59.576Z","avatar_url":"https://github.com/1691665955.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MZHTableView\n高性能横向TableView，支持cell复用\n\n\u003cdiv align=center\u003e\n\u003cimg src=\"1.gif\" width=\"300px\" /\u003e\n\u003c/div\u003e\n\n以上图示例展示的效果，cell复用结果如下:\n1000列的cell，cell复用池的cell总量为7\n\n\u003cdiv align=center\u003e\n\u003cimg src=\"2.png\" width=\"300px\" /\u003e\n\u003c/div\u003e\n\n#### Cocoapods 引入\n```\npod 'MZHTableView', '~\u003e 0.0.4'\n```\n\n#### 使用\n```\nlet tableView = MZTableView(frame: CGRect(x: 0, y: 100, width: SCREEN_WIDTH, height: 100))\n// 代理\ntableView.delegate = self\n// 是否按页面宽度滚动\ntableView.isPagingEnabled = true\n// 注册class,实现cell复用功能\ntableView.register(MZHTableViewCell.classForCoder(), forCellReuseIdentifier: \"MZHTableViewCell\")\nself.view.addSubview(tableView)\n\n// 注册nib,实现cell复用功能\ntableView.register(UINib(nibName: \"MZHTableViewCell\", bundle: nil), forCellReuseIdentifier: \"MZHTableViewCell\")\n\n// 通过已组册的identifier来获取cell\nlet cell = tableView.dequeueReusableCell(withIdentifier: \"MZHTableViewCell\") as! MZHTableViewCell\n\n// 刷新数据\n// 是否滚动到最左边 默认为false\nself.tableView.reloadData(true)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1691665955%2Fmztableview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1691665955%2Fmztableview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1691665955%2Fmztableview/lists"}