{"id":13849209,"url":"https://github.com/bitmapdata/MSCellAccessory","last_synced_at":"2025-07-12T16:31:02.047Z","repository":{"id":9424205,"uuid":"11295881","full_name":"bitmapdata/MSCellAccessory","owner":"bitmapdata","description":"UITableViewCell accessoryType can easily customizing the colors. support Flat Design same as iOS7.","archived":false,"fork":false,"pushed_at":"2017-02-08T08:14:21.000Z","size":1900,"stargazers_count":466,"open_issues_count":4,"forks_count":52,"subscribers_count":28,"default_branch":"master","last_synced_at":"2024-10-31T15:45:17.253Z","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/bitmapdata.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-07-09T22:24:50.000Z","updated_at":"2024-09-10T15:01:33.000Z","dependencies_parsed_at":"2022-09-10T14:52:45.699Z","dependency_job_id":null,"html_url":"https://github.com/bitmapdata/MSCellAccessory","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitmapdata%2FMSCellAccessory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitmapdata%2FMSCellAccessory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitmapdata%2FMSCellAccessory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitmapdata%2FMSCellAccessory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitmapdata","download_url":"https://codeload.github.com/bitmapdata/MSCellAccessory/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:10.701Z","updated_at":"2024-11-22T01:30:40.555Z","avatar_url":"https://github.com/bitmapdata.png","language":"Objective-C","readme":"MSCellAccessory\n============\n\n[![Version](https://cocoapod-badges.herokuapp.com/v/MSCellAccessory/badge.png)](https://cocoapod-badges.herokuapp.com/v/MSCellAccessory/badge.png)\n[![Platform](https://cocoapod-badges.herokuapp.com/p/MSCellAccessory/badge.png)](https://cocoapod-badges.herokuapp.com/p/MSCellAccessory/badge.png)\n\n\nMSCellAccessory is a UITableViewCell accessoryType can easily customizing the colors. Many developer really want to customizing UITableViewCell accessoryType color. but, they using a customized png image are solved. but this method is not good. because Unnecessary to create an image file, and each would have to create all colors. and Loading it unnecessarily increases the capacity of the memory. If using a this library is more easily customizing accessoryType and more flexible via Programmatically.\n\n#### iOS7 Flat Design\n \n    FLAT_DETAIL_DISCLOSURE: identical to iOS7 UITableViewCellAccessoryDetailDisclosureButton\n \n    FLAT_DETAIL_BUTTON: identical to iOS7 UITableViewCellAccessoryDetailButton\n \n    FLAT_DISCLOSURE_INDICATOR: identical to iOS7 UITableViewCellAccessoryDisclosureIndicator\n \n    FLAT_CHECKMARK: identical to iOS7 UITableViewCellAccessoryCheckmark\n \n    FLAT_UNFOLD_INDICATOR: Flat unfold indicator\n \n    FLAT_FOLD_INDICATOR: Flat fold indicator\n\n    FLAT_PLUS_INDICATOR: Flat plus indicator\n\n    FLAT_MINUS_INDICATOR: Flat minus indicator\n\t\n#### Prior to iOS7\n \n    DETAIL_DISCLOSURE: identical to UITableViewCellAccessoryDetailDisclosureButton\n \n    DISCLOSURE_INDICATOR: identical to UITableViewCellAccessoryDisclosureIndicator\n \n    CHECKMARK: identical to UITableViewCellAccessoryCheckmark\n \n    UNFOLD_INDICATOR: Unfold indicator\n \n    FOLD_INDICATOR: Fold indicator\n\n    PLUS_INDICATOR: Plus indicator\n\n    MINUS_INDICATOR: Minus indicator\n\n\u003cp align=\"center\" \u003e\n\u003cimg src=\"https://raw.github.com/bitmapdata/MSCellAccessory/master/MSCellAccessoryDemo/ScreenShot3.png\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\" \u003e\n\u003cimg src=\"https://raw.github.com/bitmapdata/MSCellAccessory/master/MSCellAccessoryDemo/ScreenShot2.png\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\" \u003e\n\u003cimg src=\"https://raw.github.com/bitmapdata/MSCellAccessory/master/MSCellAccessoryDemo/ScreenShot.png\"\u003e\n\u003c/p\u003e\n\n## Installation ##\n\nMSCellAccessory is possible via CocoaPods. Just add the following to your Podfile. =\u003e `#import \u003cMSCellAccessory.h\u003e`\n\n    platform :ios\n    pod 'MSCellAccessory'\n\nAnother way to, drag the included \u003cb\u003eMSCellAccessory\u003c/b\u003e folder into your project. =\u003e `#import \"MSCellAccessory.h\"`\n\n## Usage ##\n\nRequirements: At least iOS5\n\nThese classes was written under the ARC. Be sure to specify `-fobjc-arc` the 'Compile Sources' Build Phase for each file if you aren't using ARC project-wide\n\n## Sample Code ##\n\n    #import \"MSCellAccessory.h\"\n\n    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath\n    {\n        static NSString *CellIdentifier = @\"Cell\";\n        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];\n        if (cell == nil)\n            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];\n        \n        if(indexPath.row == 0)\n        {\n            cell.accessoryView = [MSCellAccessory accessoryWithType:FLAT_DETAIL_DISCLOSURE colors:@[[UIColor colorWithRed:253/255.0 green:184/255.0 blue:0/255.0 alpha:1.0], [UIColor colorWithWhite:0.5 alpha:1.0]]];\n        }\n        else if(indexPath.row == 1)\n        {\n            cell.accessoryView = [MSCellAccessory accessoryWithType:FLAT_DETAIL_BUTTON color:[UIColor colorWithRed:132/255.0 green:100/255.0 blue:159/255.0 alpha:1.0]];\n        }\n        else if(indexPath.row == 2)\n        {\n            cell.accessoryView = [MSCellAccessory accessoryWithType:FLAT_DISCLOSURE_INDICATOR color:[UIColor colorWithRed:0/255.0 green:166/255.0 blue:149/255.0 alpha:1.0]];\n        }\n        else if(indexPath.row == 3)\n        {\n            cell.accessoryView = [MSCellAccessory accessoryWithType:FLAT_CHECKMARK color:[UIColor colorWithRed:0/255.0 green:123/255.0 blue:170/255.0 alpha:1.0]];\n        }\n        else if(indexPath.row == 4)\n        {\n            cell.accessoryView = [MSCellAccessory accessoryWithType:FLAT_UNFOLD_INDICATOR color:[UIColor colorWithRed:0/255.0 green:123/255.0 blue:170/255.0 alpha:1.0]];\n        }\n        else if(indexPath.row == 5)\n        {\n            cell.accessoryView = [MSCellAccessory accessoryWithType:FLAT_FOLD_INDICATOR color:[UIColor colorWithRed:0/255.0 green:123/255.0 blue:170/255.0 alpha:1.0]];\n        }\n\n        return cell;\n    }\n\n## Release notes ###\n\n####    Ver 1.1.3\n* Rename AccessoryType to MSCellAccessoryType\n* Add FLAT_PLUS_INDICATOR, FLAT_MINUS_INDICATOR, PLUS_INDICATOR, MINUS_INDICATOR\n\n####    Ver 1.1.2\n* Discontinued TOGGLE_INDICATOR and change to UNFOLD_INDICATOR, FOLD_INDICATOR. flat also changed.\n* Solved what if you change a UITableViewCell height, accessoryView this will affect change the right margin. ( #issue prior to iOS7 )\n* Modified accessoryView frame, divided separately Plain Style and Grouped Style. ( #issue prior to iOS7 )\n\n####    Ver 1.1.1\n* FLAT_DETAIL_DISCLOSURE, FLAT_DETAIL_BUTTON, DETAIL_DISCLOSURE types auto linking to `- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath` delegate method. when such types accessory touched is called. same as Apple.\n* DETAIL_DISCLOSURE size and design modified. \n\n####    Ver 1.1.0\n* Supported iOS7 Flat Design.\n    \n####    Ver 1.0.1   \n* Bug fixed.\n* Modified more similar to the shape of the accessoryType.\n    \n####    Ver 1.0.0 \n* Initial commit\n\n## License ##\n\nSoftware License Agreement (BSD License)\n\nCopyright (c) 2013 SHIM MIN SEOK. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n  1. Redistributions of source code must retain the above copyright\n     notice, this list of conditions and the following disclaimer.\n   \n  2. Redistributions in binary form must reproduce the above copyright\n     notice, this list of conditions and the following disclaimer in\n     the documentation and/or other materials provided with the\n     distribution.\n\n  3. Neither the name of Infrae nor the names of its contributors may\n     be used to endorse or promote products derived from this software\n     without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INFRAE OR\nCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\nEXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\nPROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\nPROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\nNEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n## Contact ##\n\nbitmapdata.com@gmail.com\n","funding_links":[],"categories":["Objective-C","etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitmapdata%2FMSCellAccessory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitmapdata%2FMSCellAccessory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitmapdata%2FMSCellAccessory/lists"}