要学习的 iOS 示例项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7010678/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 21:02:20  来源:igfitidea点击:

iOS sample projects to learn from

iosobjective-cxcode

提问by DerMike


I am just starting iOS development. I read some tutorials, watched stuff on iTunes U and wrote some sample code myself. Now I want to take the next step. I want to learn about best practices for iOS development in XCode.


我刚刚开始iOS开发。我阅读了一些教程,在 iTunes U 上观看了一些内容,并自己编写了一些示例代码。现在我想进行下一步。我想了解在 XCode 中进行 iOS 开发的最佳实践。

Are there any well written and well organized iOS projects that one could take a look at?

是否有任何编写良好且组织良好的 iOS 项目可以看一看?

(As I see it, iOS is not exactly the place for open source enthusiasts, however.)

(不过,在我看来,iOS 并不完全适合开源爱好者。)

Thanks
Mike.

谢谢迈克

采纳答案by mmc

I agree with several of the other answers that state that looking at many, many projects for mini-examples of what you want to do in your own app is the way to go.

我同意其他几个答案,这些答案指出,查看许多项目以获取您想要在自己的应用程序中执行的操作的小型示例是要走的路。

However, you asked for an example of an app demonstrating best practices.

但是,您要求提供一个展示最佳实践的应用示例。

You could do worse than to read Matt Gallagher's blog, Cocoa with Lovefrom beginning to end. However, the app example you asked for is right here.

你可能比阅读 Matt Gallagher 的博客Cocoa with Love从头到尾更糟糕。但是,您要求的应用程序示例就在这里。

Not only will it show a variety of techniques, some novel design and best-practices, but also he points out where he feels that he might have done something better.

它不仅会展示各种技术、一些新颖的设计和最佳实践,而且还会指出他认为自己可能做得更好的地方。

It's a great read.

这是一个伟大的阅读。

回答by AlexFZ

I would suggest the following process: (it worked for me)

我会建议以下过程:(它对我有用)

  1. Think of an advanced app. that you eventually want to be proficient enough to create.
  2. Make a top-down problem-solving tree containing the necessary skills required to build your final app.
  3. Use this tree to divide your final app. into 'sub apps'. Start at the bottom of the tree, find a tutorial specifically for that skill, and make a "Hello World" app. that uses that skill.
  4. Keep progressing upwards, creating 'sub apps' as you go.
  5. When you are finally ready to make your final app. (it will take a while), you will have a good handle on how iOS development works. It will also be a great test of your knowledge via direct application!
  1. 想想一个高级应用程序。你最终想要足够熟练地创造。
  2. 制作一个自上而下的问题解决树,其中包含构建最终应用程序所需的必要技能。
  3. 使用此树划分您的最终应用程序。进入“子应用程序”。从树的底部开始,找到专门针对该技能的教程,然后制作一个“Hello World”应用程序。使用那个技能。
  4. 不断向上发展,随时创建“子应用程序”。
  5. 当您终于准备好制作最终的应用程序时。(这将需要一段时间),您将很好地掌握 iOS 开发的工作原理。通过直接应用,这也将是对您知识的一次很好的测试!

Getting the hang of iOS development can be tricky; it really does require a top-down approach, and every online resource I've found takes a linear one. The only way that I think a linear approach to learning iOS development would be manageable, is to take it one small task at a time.

掌握 iOS 开发的窍门可能很棘手;它确实需要一种自上而下的方法,我发现的每个在线资源都采用线性方法。我认为学习 iOS 开发的线性方法是可管理的唯一方法,就是一次完成一项小任务。

As for specific resources, I always google "[what I want to do] iPhone SDK" and browse the tutorials and forum posts that come up.

至于具体的资源,我总是谷歌“[我想做什么] iPhone SDK”并浏览出现的教程和论坛帖子。

Here are some open source iOS apps. However, they aren't very well documented and are also very advanced.

这里有一些开源的 iOS 应用程序。但是,它们没有很好的文档记录并且也非常先进。

Good luck!

祝你好运!

回答by Benedicte Raae

The people behind the Parse platform have made two complete projects.

Parse 平台背后的人已经做了两个完整的项目。

For each project there is the complete source code, a tutorial and the resulting app is also available from the AppStore.

对于每个项目,都有完整的源代码、教程和生成的应用程序也可以从 AppStore 获得。

  • Anywall:https://parse.com/anywall
  • Anypic:https://parse.com/anypic

They both rely heavily on the Parse platform as the data source, but you still get a feel for an iOS project.

它们都严重依赖 Parse 平台作为数据源,但您仍然可以感受到 iOS 项目。

回答by Luke

Moleculesis a great open-source app that uses 3D OpenGL to render complex models of molecules.

Molecules是一款出色的开源应用程序,它使用 3D OpenGL 来渲染复杂的分子模型。

回答by Srikar Appalaraju

Just keep coding my friend. You'll learn over a period of time. The best way to get dirty in a mud fight is to jump into it... Weird analogy but you get the point.

继续编码我的朋友。你会学习一段时间。在泥泞的战斗中弄脏的最好方法是跳进去......奇怪的比喻,但你明白了。

Maybe someday, we all will learn from you then !

也许有一天,我们都会向你学习!

回答by Julie

Like you said there many and many source codes are available internet, but most are incomplete.

就像你说的,互联网上有很多源代码,但大多数都不完整。

I found some Open source codes of REAL application currently available through Apple app storeare given here

我发现这里给出了一些目前可通过 Apple 应用商店获得的 REAL 应用程序的开源代码

Free iPhone App Source Codes of real apps

真正的应用程序的免费 iPhone 应用程序源代码

and also, you can find many answers here on stackoverflow question - Are there any Open-source iPhone applications around?

而且,您可以在此处找到有关 stackoverflow 问题的许多答案 -是否有任何开源 iPhone 应用程序?

回答by Mayz

You can download free IOS sample projects from http://devcodemarket.com

您可以从http://devcodemarket.com下载免费的 IOS 示例项目

回答by Korey Hinton

I realize this is an old thread but I've also been looking for good objective-c code examples recently and I just realized that TextEdit's source code is available at the Mac Developer Library webpage.

我意识到这是一个旧线程,但我最近也在寻找好的 Objective-c 代码示例,我刚刚意识到TextEdit的源代码可在Mac 开发人员库网页上找到

Also, here are some popular objective-c libraries that have caught my attention:

另外,这里有一些引起我注意的流行的objective-c库:

回答by DerMike

Have a look at https://github.com/mozilla/firefox-ios

看看https://github.com/mozilla/firefox-ios

That is Firefox for iOS, written in Swift.

那是 Firefox for iOS,用 Swift 编写。

回答by Fahim Parkar

Cocoacontrolshas a wide range of controls written using Objective-C & Swift.

Cocoacontrols有大量使用 Objective-C 和 Swift 编写的控件。

I believe these days, this is one of the most famous website for iOS Developers.

我相信现在,这是 iOS 开发人员最著名的网站之一。

But, before you jump onto this, you have to learnObjective-C & Swiftvery well, so that you will understand how to use the controls in your app which makes your app smooth.

但是,在开始之前,您必须很好地学习Objective-C 和 Swift,以便您了解如何使用应用程序中的控件使您的应用程序流畅。