{"id":21762691,"url":"https://github.com/blodely/lycategory","last_synced_at":"2025-04-13T13:41:26.692Z","repository":{"id":12089771,"uuid":"14677878","full_name":"blodely/LYCategory","owner":"blodely","description":"Categories.","archived":false,"fork":false,"pushed_at":"2025-04-10T09:19:44.000Z","size":648,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T10:46:12.831Z","etag":null,"topics":["ios","objective-c","pod"],"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/blodely.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":"2013-11-25T06:19:29.000Z","updated_at":"2025-04-10T09:19:49.000Z","dependencies_parsed_at":"2024-11-26T12:12:56.338Z","dependency_job_id":"f6c12c3f-84e0-4208-8fd1-91c8915e748f","html_url":"https://github.com/blodely/LYCategory","commit_stats":{"total_commits":839,"total_committers":4,"mean_commits":209.75,"dds":"0.31227651966626935","last_synced_commit":"563cb28d071280aa61f45e600fe1c6a82b47a16a"},"previous_names":[],"tags_count":70,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blodely%2FLYCategory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blodely%2FLYCategory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blodely%2FLYCategory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blodely%2FLYCategory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blodely","download_url":"https://codeload.github.com/blodely/LYCategory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248724306,"owners_count":21151557,"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","objective-c","pod"],"created_at":"2024-11-26T12:12:53.022Z","updated_at":"2025-04-13T13:41:26.668Z","avatar_url":"https://github.com/blodely.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LYCategory\n\nThe categories for iOS app dev.\n\n### Support 996.ICU.\n\n[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)\n\n### 1. Installation\n\n#### Cocoapods\n\nuse it from official trunk:\n\n```sh\npod 'LYCategory'\n```\n\n#### Alternative\n\nJust put this↓ in your Podfile, then run 'pod install'.\n\n~~~ruby\n# LYCategory\npod 'LYCategory', :git =\u003e 'https://github.com/blodely/LYCategory.git'\n# ↑ BLEEDING EDGE VERSION\n~~~\n\n#### Files\n\nOr you can just download and unzip the file, put them in your project.\n\n### 2. features\n\n#### ① Foundation\n\n#### NSString\n\n~~~objc\n\n// You can check string input\n\n[@\"\" isEmpty];\n// YES\n\n[@\"indie.luo@gmail.com\" isEmail];\n// YES\n\n[@\"13986210000\" isPhoneNumber];\n// YES\n\n[@\"139-8621-3146\" phoneNumber];\n// @\"13986213146\"\n\n// Or you can trim space charactor:\n[@\"lalala this is a string\" trimSpace];\n\n// Or just..\n[@\"   lalala try this.\" trimStartSpace];\n\n// Search string\n-caseInsensitive:\n-caseSensitive:\n\n// compare\n-isEqualWithFormat:\n\n// Find out if it's in a array of strings.\n[@\"carrot\" isOneOfThem:@[@\"flower\", @\"carrot\", @\"potato\",]];\n// YES\n\n// Calculate displaying size\n[@\"bla bla bla\" widthWithFont:[UIFont systemFontOfSize:12]];\n\n// Encryption\n-base64\n-md5\n-md5Lowercase16\n// ..etc\n\n// Convert to NSDate object\n[@\"2016-06-29\" dateWithFormat:@\"yyyy-MM-dd\"];\n// return NSDate object\n\n-dateWithFormat:andTimezone:\n-dateWithFormat:dateStyle:\n\n// Convert Arabic number to Chinese localized string\n[NSString numberToChinese:11];\n// 十一\n\n~~~\n\n#### NSArray\n\n~~~objc\n\n// Reverse array\nNSArray *things = @[@\"log\", @\"grass\", @\"coal\",];\n[things reversed];\n\n~~~\n\n\n#### NSURL\n\n~~~objc\n// Creation\nNSInteger tid = 10504;\n[NSURL URLWithFormat:@\"http://luoyu.space/tid=%@\", @(tid)];\n\n~~~\n\n#### NSUserDefaults\n\n~~~objc\n[NSUserDefaults setObject:@\"thatMustBeTrue\" forKey:@\"space.luoyu.testApp.config.isThatTrue\"];\n~~~\n\n\u003cbr\u003e\n\n#### ② UIKit\n\n#### UITextField\n\nCheck if textField is empty string or not, use method `-isEmpty`.\n\n#### UITextView\n\nTo check custom string as textview's placeholder, method `-isEmptyWithPlaceholder:`.\n\n#### UIView\n\nTo take view snapshot, use `-imageShot` method.\n\n#### UIImage\n\nTo shrink image size down, use `-resize:` method.\n\n\u003cbr\u003e\nand etc.\n\n### 3. License (MIT)\n\n\u003e \n\u003e The MIT License (MIT)\n\u003e \n\u003e Copyright (c) 2013~2018 骆昱(Luo Yu). All rights reserved.\n\u003e \n\u003e Permission is hereby granted, free of charge, to any person obtaining a copy of\n\u003e this software and associated documentation files (the \"Software\"), to deal in\n\u003e the Software without restriction, including without limitation the rights to\n\u003e use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n\u003e the Software, and to permit persons to whom the Software is furnished to do so,\n\u003e subject to the following conditions:\n\u003e \n\u003e The above copyright notice and this permission notice shall be included in all\n\u003e copies or substantial portions of the Software.\n\u003e \n\u003e THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\u003e IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n\u003e FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n\u003e COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n\u003e IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n\u003e CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\u003e \n\nPlease READ THE LICENSE above!\n\n\nblodely/LYCategory is licensed under the\u003cbr\u003eMIT License|Permissions|Limitations|Conditions\n:---|:---|:---|:---\nA short and simple permissive license \u003cbr\u003ewith conditions \u003cbr\u003eonly requiring preservation \u003cbr\u003eof copyright and license notices. \u003cbr\u003eLicensed works, modifications, \u003cbr\u003eand larger works may be distributed \u003cbr\u003eunder different terms \u003cbr\u003eand without source code.|✅Commercial use\u003cbr\u003e✅Modification\u003cbr\u003e✅Distribution\u003cbr\u003e✅Private use|❎Liability\u003cbr\u003e❎Warranty|License and \u003cbr\u003ecopyright notice\nThis is not legal advice.|\n\n\n### 4. Author\n\n骆昱 ([Luo Yu](http://luoyu.space))\n\nEmail: [indie.luo@gmail.com](mailto:indie.luo@gmail.com)\n\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblodely%2Flycategory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblodely%2Flycategory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblodely%2Flycategory/lists"}