{"id":19302266,"url":"https://github.com/apestalk/effective-ios-tricks","last_synced_at":"2026-05-18T07:34:35.666Z","repository":{"id":86574563,"uuid":"146083171","full_name":"ApesTalk/effective-iOS-tricks","owner":"ApesTalk","description":"有效提高iOS开发效率的技巧集合，欢迎大家投稿参与。A collection of effective tricks for iOS develop, welcome to contribute. ","archived":false,"fork":false,"pushed_at":"2019-05-22T05:43:32.000Z","size":535,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-28T11:03:57.373Z","etag":null,"topics":["develop","developer-experience","effective","effective-ios","guide","ios","objective-c","swift","tips","tricks"],"latest_commit_sha":null,"homepage":null,"language":null,"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/ApesTalk.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":"2018-08-25T09:35:30.000Z","updated_at":"2019-05-22T05:43:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"19406e7c-a745-43f7-a759-7a4701d46047","html_url":"https://github.com/ApesTalk/effective-iOS-tricks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ApesTalk/effective-iOS-tricks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApesTalk%2Feffective-iOS-tricks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApesTalk%2Feffective-iOS-tricks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApesTalk%2Feffective-iOS-tricks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApesTalk%2Feffective-iOS-tricks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ApesTalk","download_url":"https://codeload.github.com/ApesTalk/effective-iOS-tricks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ApesTalk%2Feffective-iOS-tricks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33169332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["develop","developer-experience","effective","effective-ios","guide","ios","objective-c","swift","tips","tricks"],"created_at":"2024-11-09T23:21:06.432Z","updated_at":"2026-05-18T07:34:35.641Z","avatar_url":"https://github.com/ApesTalk.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# effective-iOS-tricks\n\n有效提高iOS开发效率的技巧集合，期待有兴趣的朋友参与进来！\n这里将持续收集一些在实际开发中非常实用的开发技巧、奇淫巧技、踩过的坑、疑难杂症解决方案等等。\n\n\nA collection of skills that effectively improve the efficiency of iOS development. Interested friends are welcome to contribute.\n\n\n# 使用技巧\n\n按 T 可以进入搜索页面，查找你需要的内容\n\n\n# Contents\n\n## [Xcode Tricks](https://github.com/ApesTalk/effective-iOS-tricks/blob/master/Xcode%20Tricks/Tricks/Xcode-config-and-tricks.md)\n\n\n- 提升Xcode编译速度\n- 禁止Xcode打印杂七杂八的系统日志\n- 打印App启动时间信息\n- Xcode无法注释（注释快捷键不能使用）问题\n- 通过模拟器给你的APP录制一个视频（模拟器录屏功能）\n- 关于符号表（dSYM）的误解与事实\n  \n\n\n\n\n## [Develop Tricks](https://github.com/ApesTalk/effective-iOS-tricks/blob/master/Develop%20Tricks/Tricks)\n\n### [UITableView-tricks](https://github.com/ApesTalk/effective-iOS-tricks/blob/master/Develop%20Tricks/Tricks/UITableView-tricks.md)\n\n- UITableViewStyleGrouped类型的UITableView的使用技巧\n- UITableView常见crash原因及解决方案\n\n### [NSURL-tricks](https://github.com/ApesTalk/effective-iOS-tricks/blob/master/Develop%20Tricks/Tricks/NSURL-tricks.md)\n\n- 从NSURL中获取键值对\n\n### [NSDictionary-tricks](https://github.com/ApesTalk/effective-iOS-tricks/blob/master/Develop%20Tricks/Tricks/NSDictionary-tricks.md)\n\n- 用语法糖创建实例对象\n- NSMutableDictionary防止setObject:forKey: object cannot be nil奔溃的写法\n\n###  [NSAttributedString-tricks](https://github.com/ApesTalk/effective-iOS-tricks/blob/master/Develop%20Tricks/Tricks/NSAttributedString-tricks.md)\n\n- 给UILabel、UITextField、UITextView、UIButton等设置富文本时必须知道的一点\n\n### [NSArray-tricks](https://github.com/ApesTalk/effective-iOS-tricks/blob/master/Develop%20Tricks/Tricks/NSArray-tricks.md)\n\n- 用语法糖创建实例对象\n- 让数组中的对象执行指定方法\n- 批量删除数组中的对象\n\n### [Document-tricks](https://github.com/ApesTalk/effective-iOS-tricks/blob/master/Develop%20Tricks/Tricks/Document-tricks.md)\n\n- 禁止iCloud同步Document目录下的某文件\n\n### [创建静态库-tricks](https://github.com/ApesTalk/effective-iOS-tricks/blob/master/Develop%20Tricks/Tricks/创建静态库-tricks-tricks.md)\n\n\n## [Debug Tricks](https://github.com/ApesTalk/effective-iOS-tricks/blob/master/Debug%20Tricks/Tricks/Debug-tricks.md)\n\n- 查看dSYM和.ipa文件的uuid\n- Xcode常用调试命令\n    - p and po\n    - call 执行一段代码，对点语法不敏感。如 ``call (void)([[self view] setBackgroundColor:[UIColor redColor]]])``或``call (void)(self.view.backgroundColor = [UIColor redColor])``\n    - bt 或 bt all 打印堆栈信息 \n    - watchpoint 检测变量值发生改变\n    - Debug Memory Graph检测内存泄漏\n    - 断点查看方法返回值\n    - x命令查看内存地址中的值\n\n\n\n# 投稿说明 Contribute Guide\n\n如果你也刚好有提高开发效率的技巧并且乐于分享，欢迎直接提issue或发送邮件到 apestalk@gmail.com ，请在邮件中请详细说明你的技巧并注明你的GitHub个人主页地址或个人博客地址。一旦你的投稿被采纳，我会将你的GitHub个人主页地址或个人博客地址放在下面贡献者列表中以示感谢。\n\nIf you happen to have the tricks to improve your development efficiency and are happy to share, please feel free to post issue or email me at apestalk@gmail.com. Please specify your tricks and indicate your GitHub homepage address or personal blog address. Once your submission has been accepted, I will place your GitHub homepage address or personal blog address in the list of contributors below to thank you.\n\n\n# 贡献者 Contributor\n\n- [ApesTalk](https://github.com/ApesTalk)\n\n\n# License\n\nMIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapestalk%2Feffective-ios-tricks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapestalk%2Feffective-ios-tricks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapestalk%2Feffective-ios-tricks/lists"}