{"id":13849225,"url":"https://github.com/popochess/PPImageScrollingTableViewCell","last_synced_at":"2025-07-12T16:31:06.789Z","repository":{"id":10055754,"uuid":"12105342","full_name":"popochess/PPImageScrollingTableViewCell","owner":"popochess","description":"PPImageScrollingTableViewCell is a UITableViewCell subclass that can make images scrollable horizontally in TableView.","archived":false,"fork":false,"pushed_at":"2019-10-27T14:34:58.000Z","size":15150,"stargazers_count":252,"open_issues_count":4,"forks_count":51,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-11-08T09:24:02.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/popochess.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}},"created_at":"2013-08-14T09:38:17.000Z","updated_at":"2024-02-24T03:03:50.000Z","dependencies_parsed_at":"2022-08-30T08:23:51.741Z","dependency_job_id":null,"html_url":"https://github.com/popochess/PPImageScrollingTableViewCell","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popochess%2FPPImageScrollingTableViewCell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popochess%2FPPImageScrollingTableViewCell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popochess%2FPPImageScrollingTableViewCell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/popochess%2FPPImageScrollingTableViewCell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/popochess","download_url":"https://codeload.github.com/popochess/PPImageScrollingTableViewCell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225829364,"owners_count":17530663,"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":[],"created_at":"2024-08-04T19:01:11.146Z","updated_at":"2024-11-22T01:30:41.375Z","avatar_url":"https://github.com/popochess.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"PPImageScrollingTableViewCell\n=============================\n\n\n\n`PPImageScrollingTableViewCell` is a `UITableViewCell` subclass that can make images scrollable\nhorizontally in TableView.\n\n`PPImageScrollingTableViewCell` allows to customize the cell to match your needs and uses delegate callbacks to handle actions in your `UITableViewController`\n\n![DemoAnimation](https://raw.github.com/popochess/PPImageScrollingTableViewCell/gh-pages/images/animation.gif)\n\n## Installing \nAdd all files under `PPImageScrollingTableViewCell` folder to your project. Import the class header and register the cell class in your UITableView.\n\n## Usage\nSet sample data first. use `@\"category\"` and `@\"images\"` for key of Dictionary\n```Objective-C\n@property (strong, nonatomic) NSArray *images;\n```\n```Objective-C\nself.images = @[\n                  @{ @\"category\": @\"Category A\",\n                     @\"images\":\n                         @[\n                             @{ @\"name\":@\"sample_1\", @\"title\":@\"A-0\"},\n                             @{ @\"name\":@\"sample_2\", @\"title\":@\"A-1\"},\n                             @{ @\"name\":@\"sample_3\", @\"title\":@\"A-2\"},\n                             @{ @\"name\":@\"sample_4\", @\"title\":@\"A-3\"},\n                             @{ @\"name\":@\"sample_5\", @\"title\":@\"A-4\"},\n                             @{ @\"name\":@\"sample_6\", @\"title\":@\"A-5\"}\n                          ]\n                      },\n                  @{ @\"category\": @\"Category B\",\n                     @\"images\":\n                         @[\n                             @{ @\"name\":@\"sample_3\", @\"title\":@\"B-0\"},\n                             @{ @\"name\":@\"sample_1\", @\"title\":@\"B-1\"},\n                             @{ @\"name\":@\"sample_2\", @\"title\":@\"B-2\"},\n                             @{ @\"name\":@\"sample_5\", @\"title\":@\"B-3\"},\n                             @{ @\"name\":@\"sample_6\", @\"title\":@\"B-4\"},\n                             @{ @\"name\":@\"sample_4\", @\"title\":@\"B-5\"}\n                          ]\n                    }\n                ];\n```\nAdd `PPImageScrollingTableViewCellDelegate` in your header file if you want to receive delegate callbacks on cell interactions\n```Objective-C\n\n#import \"PPImageScrollingTableViewCell.h\"\n\n-(void)viewDidLoad \n{\n    [super viewDidLoad];\n    [self.tableView registerClass:[PPImageScrollingTableViewCell class] forCellReuseIdentifier:CellIdentifier];\n}\n```\nSubclass PPImageScrollingTableViewCell in tableview delegate\n```Objective-C\n- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath \n{\n    static NSString *CellIdentifier = @\"Cell\";\n    NSDictionary *cellData = [self.images objectAtIndex:[indexPath section]];\n    PPImageScrollingTableViewCell *customCell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];\n    [customCell setDelegate:self];\n    [customCell setImageData:cellData];\n    [customCell setCategoryLabelText:[cellData objectForKey:@\"category\"] withColor:[UIColor whiteColor]];\n    [customCell setTag:[indexPath section]];\n    [customCell setImageTitleTextColor:[UIColor whiteColor] withBackgroundColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:0.7]];\n    [customCell setImageTitleLabelWitdh:90 withHeight:45];\n    [customCell setCollectionViewBackgroundColor:[UIColor darkGrayColor]];\n    \n    return customCell;\n}\n```\n\n## `PPImageScrollingTableViewCell` Delegate Methods\n```Objective-C\n// Notifies the delegate when user click image\n- (void)scrollingTableViewCell:(PPImageScrollingTableViewCell *)scrollingTableViewCell didSelectImageAtIndexPath:(NSIndexPath*)indexPathOfImage atCategoryRowIndex:(NSInteger)categoryRowIndex;\n```\n\n## License\n\n`PPImageScrollingTableViewCell` is released under the MIT license.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpopochess%2FPPImageScrollingTableViewCell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpopochess%2FPPImageScrollingTableViewCell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpopochess%2FPPImageScrollingTableViewCell/lists"}