{"id":13990301,"url":"https://github.com/leancloud/LeanStorageDemo-iOS","last_synced_at":"2025-07-22T12:31:46.280Z","repository":{"id":25743295,"uuid":"29180957","full_name":"leancloud/LeanStorageDemo-iOS","owner":"leancloud","description":"基于 iOS SDK，全面示例了 LeanCloud 的存储功能。","archived":false,"fork":false,"pushed_at":"2021-06-23T06:58:33.000Z","size":4714,"stargazers_count":156,"open_issues_count":5,"forks_count":47,"subscribers_count":38,"default_branch":"master","last_synced_at":"2024-11-20T15:26:45.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/leancloud.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-01-13T08:51:48.000Z","updated_at":"2024-11-09T03:03:56.000Z","dependencies_parsed_at":"2022-08-24T14:13:23.433Z","dependency_job_id":null,"html_url":"https://github.com/leancloud/LeanStorageDemo-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/leancloud%2FLeanStorageDemo-iOS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2FLeanStorageDemo-iOS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2FLeanStorageDemo-iOS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2FLeanStorageDemo-iOS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leancloud","download_url":"https://codeload.github.com/leancloud/LeanStorageDemo-iOS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227089622,"owners_count":17729515,"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":[],"created_at":"2024-08-09T13:02:32.197Z","updated_at":"2024-11-29T09:31:08.874Z","avatar_url":"https://github.com/leancloud.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"![demo2](https://cloud.githubusercontent.com/assets/5022872/7852211/71f4ac66-052c-11e5-868a-b98b34867a06.png)\n![file4](https://cloud.githubusercontent.com/assets/5022872/9400930/482426f8-47fa-11e5-9cad-4763975802a1.png)\n![file5](https://cloud.githubusercontent.com/assets/5022872/9400936/58faf380-47fa-11e5-944b-8d9065366b61.png)\n![file2](https://cloud.githubusercontent.com/assets/5022872/9401070/2d2737a8-47fc-11e5-852f-7cd44603d5eb.png)\n![file3](https://cloud.githubusercontent.com/assets/5022872/9401080/4fe8a268-47fc-11e5-8486-752060611320.png)\n![file1](https://cloud.githubusercontent.com/assets/5022872/9401084/59601560-47fc-11e5-8b38-cc09a3584b70.png)\n\n## 介绍\n这个示例项目是为了帮助使用 LeanCloud 的开发者, 尽快的熟悉和使用SDK而建立的。主要展示 LeanCloud SDK的各种基础和高级用法。\n\n## 如何运行\n\n```\n \t// Objective-C \n \tcd LeanStorageDemoObjc\n    # 如果提示找不到库，则可去掉 --no-repo-update\n    pod install --verbose --no-repo-update \n    open LeanStorageDemo.xcworkspace\n\n```\n\n `AVOSCloud.framework` 静态库支持 iOS6 以上的设备上，Demo 也是使用的静态库， Demo 中设置的默认运行设备是 iOS7 以上，如果要在 iOS6 的设备上运行，只需修改 Xcode 里的 `Deployment Target` 为 iOS6 即可。另外注意，因为动态库只支持 iOS8 以上的设备，如果使用了 `AVOSCloud.framework` 动态库， `Deployment Target` 必须为 iOS8 以上 。\n\n## 使用说明\n\n### 登录后台查看数据\n\n您可以在 ```LeanStorageDemo-iOS/LeanStorageDemoObjC/OtherSource/AppDelegate.m ``` 修改成您自己的应用 id 和 key。强烈建议这样，一边查看自己的后台，一边运行 Demo。当在 Demo 运行代码来增删改查时，就可以在自己的后台看到相应的数据变化。\n\n![image](https://cloud.githubusercontent.com/assets/5022872/7763947/3b25548e-007b-11e5-9a1b-af3ca1806175.png)\n\n\n### 编译警告\n代码中有一些人为添加的编译,是为了引起您足够的重视, 如果觉得没问题可以删除掉该行\n\n### 添加Demo\n\n1. 新建一个继承`Demo`的类, 文件位置在项目的`LeanStorageDemo`文件夹\n2. 在.m里的`@end`前加一句`MakeSourcePath` 用来在编译时生成返回这个文件的方法\n3. 加一个demo方法. 方法必须以demo开头, 且必须是严格按照骆驼命名法, 否则方法名显示可能会有问题\n\n----\n## 其他\n\n如果您在使用 LeanStorage SDK中, 有自己独特高效的用法, 非常欢迎您fork 并提交pull request, 帮助其他开发者更好的使用SDK. 我们将在本项目的贡献者中, 加入您的名字和联系方式(如果您同意的话)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancloud%2FLeanStorageDemo-iOS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleancloud%2FLeanStorageDemo-iOS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancloud%2FLeanStorageDemo-iOS/lists"}