{"id":20620775,"url":"https://github.com/irons163/irradiobutton","last_synced_at":"2026-04-21T14:31:36.703Z","repository":{"id":56915184,"uuid":"228045155","full_name":"irons163/IRRadioButton","owner":"irons163","description":"IRRadioButton is a powerful radio button for iOS.","archived":false,"fork":false,"pushed_at":"2021-05-12T03:00:45.000Z","size":47,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T05:34:45.744Z","etag":null,"topics":["ios","obj","radio-button","radio-buttons","radiobutton"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/irons163.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":"2019-12-14T15:29:37.000Z","updated_at":"2021-06-03T01:54:33.000Z","dependencies_parsed_at":"2022-08-20T21:20:20.649Z","dependency_job_id":null,"html_url":"https://github.com/irons163/IRRadioButton","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/irons163%2FIRRadioButton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irons163%2FIRRadioButton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irons163%2FIRRadioButton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irons163%2FIRRadioButton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irons163","download_url":"https://codeload.github.com/irons163/IRRadioButton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242277688,"owners_count":20101545,"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":["ios","obj","radio-button","radio-buttons","radiobutton"],"created_at":"2024-11-16T12:15:36.682Z","updated_at":"2026-04-21T14:31:36.652Z","avatar_url":"https://github.com/irons163.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Build Status](https://img.shields.io/badge/build-%20passing%20-brightgreen.svg)\n![Platform](https://img.shields.io/badge/Platform-%20iOS%20-blue.svg)\n\n# IRRadioButton \n\n- IRRadioButton is a powerful radio button for iOS.\n\n## Features\n- Radio buttons\n\n## Install\n### Git\n- Git clone this project.\n- Copy this project into your own project.\n- Add the .xcodeproj into you  project and link it as embed framework.\n#### Options\n- You can remove the `demo` and `ScreenShots` folder.\n\n### Cocoapods\n- Add `pod 'IRRadioButton'`  in the `Podfile`\n- `pod install`\n\n## Usage\n\n### Basic\n\n```obj-c\n#import \u003cIRRadioButton/IRRadioButton.h\u003e\n\nCGRect rect = CGRectMake(20, 20, 160, 25);\nIRRadioButton *rb1 = [[IRRadioButton alloc] initWithFrame:rect groupId:@\"group0\" index:0];\n[rb1 setText:@\"A\"];\n[self.view addSubview:rb1];\n\nrect = CGRectMake(20, 20 + 25 + 10, 160, 25);\nIRRadioButton *rb2 = [[IRRadioButton alloc] initWithFrame:rect groupId:@\"group0\" index:1];\n[rb2 setText:@\"B\"];\n[self.view addSubview:rb2];\n\nrect = CGRectMake(20, 20 + (25 + 10) * 2, 160, 25);\nIRRadioButton *rb3 = [[IRRadioButton alloc] initWithFrame:rect groupId:@\"group0\" index:2];\n[rb3 setText:@\"C\"];\n[rb3 setSelected:YES];\n[self.view addSubview:rb3];\n\nrect = CGRectMake(20, 20 + (25 + 10) * 3, 160, 25);\nIRRadioButton *rb4 = [[IRRadioButton alloc] initWithFrame:rect groupId:@\"group0\" index:3];\n[rb4 setText:@\"D\"];\n[self.view addSubview:rb4];\n\n\nrect = CGRectMake(20, 20 + (25 + 10) * 6, 160, 25);\nIRRadioButton *rb5 = [[IRRadioButton alloc] initWithFrame:rect groupId:@\"group1\" index:0];\n[rb5 setText:@\"1\"];\n[rb5 setSelected:YES];\n[self.view addSubview:rb5];\n\nrect = CGRectMake(20, 20 + (25 + 10) * 7, 160, 25);\nIRRadioButton *rb6 = [[IRRadioButton alloc] initWithFrame:rect groupId:@\"group1\" index:1];\n[rb6 setText:@\"2\"];\n[self.view addSubview:rb6];\n\n[IRRadioButton addObserver:self forGroupId:@\"group0\"];\n[IRRadioButton addObserver:self forGroupId:@\"group1\"];\n```\n\n## Screenshots\n![Demo](./ScreenShots/demo1.png)\n\n## Copyright\n##### This project is inspired from [RadioButton](https://github.com/laughmaker/RadioButton).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firons163%2Firradiobutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firons163%2Firradiobutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firons163%2Firradiobutton/lists"}