{"id":28285748,"url":"https://github.com/hkm5558/kmuimaker","last_synced_at":"2025-10-04T19:04:29.273Z","repository":{"id":56917420,"uuid":"120247731","full_name":"hkm5558/KMUIMaker","owner":"hkm5558","description":"使用类似Masonry链式编程的方式初始化UIView、UIButton、UILabel、UIScrollview、UITextView、UITabelView...","archived":false,"fork":false,"pushed_at":"2018-02-28T09:32:35.000Z","size":323,"stargazers_count":20,"open_issues_count":1,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-29T05:24:39.220Z","etag":null,"topics":["chaincode","objective-c","uibutton","uilabel","uiview"],"latest_commit_sha":null,"homepage":null,"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/hkm5558.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":"2018-02-05T03:00:52.000Z","updated_at":"2025-03-01T09:23:25.000Z","dependencies_parsed_at":"2022-08-20T21:20:26.552Z","dependency_job_id":null,"html_url":"https://github.com/hkm5558/KMUIMaker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hkm5558/KMUIMaker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkm5558%2FKMUIMaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkm5558%2FKMUIMaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkm5558%2FKMUIMaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkm5558%2FKMUIMaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hkm5558","download_url":"https://codeload.github.com/hkm5558/KMUIMaker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkm5558%2FKMUIMaker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278358591,"owners_count":25973976,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["chaincode","objective-c","uibutton","uilabel","uiview"],"created_at":"2025-05-21T19:22:29.590Z","updated_at":"2025-10-04T19:04:29.242Z","avatar_url":"https://github.com/hkm5558.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KMUIMaker\n使用类似Masonry链式编程的方式初始化UIView、UIButton、UILabel、UIScrollview、UITextView、UITabelView...\n\n![image](https://github.com/hkm5558/KMUIMaker/blob/master/Screenshot/截图1.png)\n\n## Installation with CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n#### Podfile\n\nTo integrate KMUIMaker into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\nIn your Podfile\n\u003e`pod 'KMUIMaker'`\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n## Requirements\n\nThis library requires `iOS 8.0+`\n\n## Architecture\n\n### KMUIMaker\n\n- `KMUIViewMaker`\n- `KMLabelMaker`\n- `KMImageViewMaker`\n- `KMUIControlMaker`\n- `KMButtonMaker`\n- `KMTextFieldMaker`\n- `KMScrollViewMaker`\n- `KMTableViewMaker`\n- `KMCollectionViewMaker`\n- `KMTextViewMaker`\n\n\n### KMUIMakerCategory\n\n- `UIView+KMUIViewMaker`\n- `UILabel+KMLabelMaker`\n- `UIImageView+KMImageViewMaker`\n- `UIButton+KMButtonMaker`\n- `UITextField+KMTextFieldMaker`\n- `UIScrollView+KMScrollViewMaker`\n- `UITableView+KMTableViewMaker` \n- `UICollectionView+KMCollectionViewMaker`\n- `UITextView+KMTextViewMaker`\n\n## Usage\n\n\n```obj-c\n    ///UIView\n    [UIView km_makeView:^(KMUIViewMaker *make) {\n        make\n        .frame(CGRectMake(100, 84, 150, 130))\n        .backgroundColor([UIColor lightGrayColor])\n        .cornerRadius(5)\n        .borderWidth(1)\n        .borderColor([UIColor cyanColor])\n        .clipsToBounds(YES)\n        .addToSuperView(self.view)\n        .addSubview([UILabel km_makeLabel:^(KMLabelMaker *make) {\n            make\n            .font([UIFont systemFontOfSize:11])\n            .text(@\"我是Label\")\n            .textColor([UIColor redColor])\n            .textAlignment(NSTextAlignmentRight)\n            .userInteractionEnabled(YES)\n            .addGestureRecognizer([[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapLabel:)])\n            .frame(CGRectMake(10, 10, 80, 50))\n            .backgroundColor([UIColor colorWithRed:0.1 green:0.1 blue:0.7 alpha:0.7]);\n        }]);\n    }];\n\n    ///UIButton\n    [UIButton km_makeButton:^(KMButtonMaker *make) {\n        make\n        .titleForState(@\"我是Button\", UIControlStateNormal)\n        .titleColorForState([UIColor whiteColor], UIControlStateNormal)\n        .addTargetAndActionForControlEvents(self, @selector(clickButton:), UIControlEventTouchUpInside)\n        .frame(CGRectMake(100, 100, 200, 100))\n        .center(self.view.center)\n        .backgroundColor([UIColor colorWithRed:1 green:0 blue:0 alpha:0.7])\n        .cornerRadius(8)\n        .shadowRadius(3)\n        .shadowOpacity(1)\n        .shadowColor([UIColor colorWithRed:0.1 green:0.1 blue:0.1 alpha:0.7])\n        .shadowOffset(CGSizeMake(3, 3))\n        .addToSuperView(self.view);\n    }];\n    \n```\n![image](https://github.com/hkm5558/KMUIMaker/blob/master/Screenshot/截图2.png)\n\n## Author\n\nhkm5558, SZHuangKM@163.com\n\n## License\n\nKMUIMaker is available under the MIT license. See the LICENSE file for more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhkm5558%2Fkmuimaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhkm5558%2Fkmuimaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhkm5558%2Fkmuimaker/lists"}