{"id":19039847,"url":"https://github.com/johnlui/swift-on-ios","last_synced_at":"2025-04-07T08:27:36.478Z","repository":{"id":31755431,"uuid":"35321576","full_name":"johnlui/Swift-On-iOS","owner":"johnlui","description":"JohnLui 的 Swift On iOS 代码仓库","archived":false,"fork":false,"pushed_at":"2017-08-23T10:09:21.000Z","size":1208,"stargazers_count":350,"open_issues_count":0,"forks_count":159,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-03-31T07:06:56.514Z","etag":null,"topics":["ios","johnlui","swift"],"latest_commit_sha":null,"homepage":"http://lvwenhan.com","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnlui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-09T08:39:09.000Z","updated_at":"2025-03-23T00:54:29.000Z","dependencies_parsed_at":"2022-09-10T09:30:33.876Z","dependency_job_id":null,"html_url":"https://github.com/johnlui/Swift-On-iOS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlui%2FSwift-On-iOS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlui%2FSwift-On-iOS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlui%2FSwift-On-iOS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlui%2FSwift-On-iOS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnlui","download_url":"https://codeload.github.com/johnlui/Swift-On-iOS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247617975,"owners_count":20967700,"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","johnlui","swift"],"created_at":"2024-11-08T22:19:04.390Z","updated_at":"2025-04-07T08:27:36.445Z","avatar_url":"https://github.com/johnlui.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"JohnLui 的 Swift On iOS 代码仓库\n--\n\niOS 开发知识大多为点状分布，比较难成体系。本 repo 将保存我的那些无法成系列文章的示例代码，给她们一个温暖的家。\n\n### 环境： Xcode 7 / Swift 2.0\n\n## 文章列表\n\n### 一、iOS 开发 UI 搭建心得\n\n[点我直达代码](https://github.com/johnlui/Swift-On-iOS/blob/master/DifferentWaysToBuildTheUserInterface/DifferentWaysToBuildTheUserInterface)\n\n\u003e #### 1. [iOS 开发 UI 搭建心得（一）—— 驾驭 StoryBoard](http://lvwenhan.com/ios/452.html)\n\u003e #### 2. [iOS 开发 UI 搭建心得（二）—— 善用 xib](http://lvwenhan.com/ios/453.html)\n\n### 二、自己动手写一个 iOS 网络请求库\n\n[点我直达代码](https://github.com/johnlui/Swift-On-iOS/blob/master/BuildYourHTTPRequestLibrary/BuildYourHTTPRequestLibrary)\n\n\u003e #### 1. [自己动手写一个 iOS 网络请求库（一）—— NSURLSession 初探](http://lvwenhan.com/ios/454.html)\n\u003e #### 2. [自己动手写一个 iOS 网络请求库（二）——封装接口](http://lvwenhan.com/ios/455.html)\n\u003e #### 3. [自己动手写一个 iOS 网络请求库（三）——降低耦合](http://lvwenhan.com/ios/456.html)\n\u003e #### 4. [自己动手写一个 iOS 网络请求库（四）——快速文件上传](http://lvwenhan.com/ios/457.html)\n\u003e #### 5. [自己动手写一个 iOS 网络请求库（五）——设置 SSL 钢钉](http://lvwenhan.com/ios/464.html)\n\n### 三、基于 XML 配置的完全可插拔的 js 向 Swift 的反射\n\n[点我直达代码](https://github.com/johnlui/Swift-On-iOS/blob/master/TestReflection/TestReflection)\n\nWKWebView 惨无人道，一句话完成 js 向 native 层传值，逼死 Cordova 的节奏。\n\n### 四、如何用代码控制以不同屏幕方向打开新页面\n\n[点我直达代码](https://github.com/johnlui/Swift-On-iOS/tree/master/ControlOrientation/ControlOrientation)\n\n\u003e #### [如何用代码控制以不同屏幕方向打开新页面](http://lvwenhan.com/ios/458.html)\n\n\n### 五、自己动手构建表单验证功能\n\n[点我直达代码](https://github.com/johnlui/Swift-On-iOS/tree/master/EasyFormValidator/EasyFormValidator)\n\n\u003e #### [自己动手构建表单验证功能【iOS】](http://lvwenhan.com/ios/459.html)\n\n\n### 六、自己动手打造基于 WKWebView 的混合开发框架\n\n[点我直达代码](https://github.com/johnlui/Swift-On-iOS/tree/master/BuildYourOwnHybridDevelopmentFramework/BuildYourOwnHybridDevelopmentFramework)\n\n\u003e #### 1. [自己动手打造基于 WKWebView 的混合开发框架（一）——WKWebView 上手](http://lvwenhan.com/ios/460.html)\n\u003e #### 2. [自己动手打造基于 WKWebView 的混合开发框架（二）——js 向 Native 一句话传值并反射出 Swift 对象执行指定函数](http://lvwenhan.com/ios/461.html)\n\u003e #### 3. [自己动手打造基于 WKWebView 的混合开发框架（三）——设计插件协议以兼容 Cordova](http://lvwenhan.com/ios/462.html)\n\n\n\n### 七、自己动手造无限循环图片轮播\n\n[点我直达代码](https://github.com/johnlui/Swift-On-iOS/tree/master/InfiniteCarouselScrollView/InfiniteCarouselScrollView)\n\n\u003e #### [自己动手造无限循环图片轮播](https://autolayout.club/2015/10/29/%E8%87%AA%E5%B7%B1%E5%8A%A8%E6%89%8B%E9%80%A0%E6%97%A0%E9%99%90%E5%BE%AA%E7%8E%AF%E5%9B%BE%E7%89%87%E8%BD%AE%E6%92%AD/)\n\n\n## License\n\n此项目下所有代码均基于 MIT license 开源。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnlui%2Fswift-on-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnlui%2Fswift-on-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnlui%2Fswift-on-ios/lists"}