开始 3.2+ iPhone开发

发布于 2024-08-31 00:01:33 字数 809 浏览 2 评论 0原文

我有兴趣学习 Objective C 进行 iPhone 开发。我意识到这个话题已经被遮盖得差不多了。合格的区别是:我想从最新版本开始学习(截至 2010 年 5 月的最新 iPhone 操作系统是版本 3.2,4 beta 也已发布)。我不想费力地浏览或忘记遗留信息。

使用我在 Stack Overflow 上找到的相关主题中的链接,我将阅读一篇博客文章或教程,其中会说一件事,但随后评论会说:“现在版本 xyz 中的情况有所不同。” 例如,我在内存管理/垃圾收集方面发现过几次。编辑: Johannes Rudolph下面纠正了我。它在 Objective-C 中发生了变化 2.0 —— 不是任何 iPhone 特定的内容,我当时一定正在阅读有关 Objective C 的信息。)

我认为 Apple 的“入门”文档将包含最新的信息,但许多 SO 帖子都说了。这些还不是最清楚的。

斯坦福 iPhone 课程看起来很棒,但我怎么知道它是否仍然适用于最新版本?

从 3.2 或更高版本开始,应该从哪里开始学习用于 iPhone 开发的 Objective C,而不需要过多接触遗留信息?

I'm interested in learning Objective C for iPhone development. This is a topic which I realize has been covered to death. The qualifying difference is: I'd like to start learning beginning with the latest version (the most recent iPhone OS as of May, 2010 is ver. 3.2 and 4 beta is also out). I'd like to not have to wade through or unlearn legacy information.

Using the links I've found throughout related topics on Stack Overflow, I'll read a blog post or tutorial which will say one thing, but then the comments will say, "this is different now in version xyz." For example, I've found this a few times regarding memory management/garbage collection. (Edit: Johannes Rudolph corrected me below on this. It changed in Objective-C 2.0 -- not in anything iPhone specific. I must have been reading info on Objective C at the time.)

I assume that Apple's "getting started" doc.s will have the most recent info but many SO posts have said that those are not the most clear.

The Stanford iPhone course looks great, but how do I know if it still applies to the most recent versions?

Where should one start learning Objective C for iPhone development starting with version 3.2 or later without having as much exposure to legacy information?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

苦笑流年记忆 2024-09-07 00:01:33

例如,我发现了一些
关于记忆的次数
管理/垃圾收集。

抱歉,这是完全错误的。内存管理始终以相同的方式工作,围绕它的约定也没有改变。

您会发现 iPhone OS 版本之间的主要区别在于新的 API(有时会使旧的 API 过时,但这种情况并不经常发生)、API 的细微更改和错误修复。

鉴于我上面所说的,几乎所有 iPhone 教程都应该可以帮助您入门。仅当查看特定 API 时,您才应该尝试查找最新版本。另一方面,SDK 文档在标记过时项目和引导您走向“执行 xyz 的新方法”方面非常好,因此应该不会有太大问题。

For example, I've found this a few
times regarding memory
management/garbage collection.

Sorry, this is plain wrong. Memory management has always worked the same, the conventions around it haven't changed either.

You'll find the major differences between the iPhone OS versions are new APIs (sometimes rendering old APIs obsolete but that doesn't happen very often), minor changes to the APIs and bug fixes.

Given what I said above, almost any iPhone tutorial should get you started. Only when looking into a particular API you should try to look for the latest versions. On the other hand the SDK documentation is very good in terms of marking obsolete items and directing you towards "the new way to do xyz", so there shouldn't be much of a problem.

徒留西风 2024-09-07 00:01:33

您不会找到纯粹的 3.2 资源,因为 (A) 3.2 太新,并且 (B) iPhone 应用程序仍然在 3.1.3 sdk 下发布。

处理旧的参考资料是一件痛苦的事情,但在快速发展的软件业务中这是不可避免的。从技术上讲,几乎所有编写的内容都会在六个月内变得有些过时。您必须不断关注变更和修订的通知。没有办法解决这个问题。

然而,iPhoneOS 的语言和 API 的核心在 3 年多的时间里并没有发生根本性的变化。唯一的重大转变是对 iPad 硬件(例如弹出窗口)的支持,这是明显不同的。

根据我的经验,免费资源的寿命比付费资源更糟糕,原因很简单,更新参考以使其保持最新是乏味的,而且大多数没有付费的人没有兴趣从事这项苦差事。如果您想要相对最新和更新的信息,则必须付费。

我向我的客户推荐 O'Reilly 的 Safari Online。每月只需​​支付一两本硬拷贝书的费用,您就可以无限制地访问一个庞大的图书馆。书籍的出版日期及其涵盖的版本很容易获得。许多书籍的更新相当持续。您可以访问最新的文章和视频。

然而最终,这只是一个艰难的过程。完美的资源不会落到你的手里。事实上,获得完全最新信息的唯一方法是聘请经验丰富、了解新旧信息的人。

You're not going to find a pure 3.2 resource because (A) 3.2 is too new and (B) apps for iPhone are still released under the 3.1.3 sdk.

Dealing with old reference material is a pain but it is unavoidable in a fast moving business such software. Technically, virtually everything written becomes somewhat obsolete within six months. You have to constantly pay attention to notices of changes and revisions. There is just no way around it.

However, the core of the language and API for iPhoneOS hasn't changed radically in 3+ years. The only major shift has been the support for the iPad hardware e.g. popups and that is clearly distinct.

In my experience free resources age worse than paid ones for the simple reason that updating a reference to keep it current is tedious and most people who aren't being paid don't have an interest in engaging in that drudgery. If you want relatively current and updated info, you have to pay for it.

I recommend O'Reilly's Safari Online to my clients. For cost of a hardcopy book or two a month you can get unlimited access to a huge library. The books publication dates as well as the version they cover are readily available. Many of the books are updated fairly continuously. You have access to articles and video which are even more current.

In the end, however, its just a slog. The perfect resource isn't going to fall into your lap. Really, the only way to get only perfectly up to date info is to hire someone experienced enough to know whats new and what's old.

离线来电— 2024-09-07 00:01:33

iPhone 中的内存管理没有改变。 3.2 中仍然没有垃圾回收。这是从 10.4 迁移到 10.5 时的 Mac 开发问题。我仍然推荐斯坦福课程。从 3.0 到 3.2,没有什么显着的变化会影响我能想到的新学习者。 UITableView 从 2.0 到 3.0 发生了重大变化,这会对新学习者产生影响,但大多数教程都是 3.0 之后的。斯坦福大学绝对是。我没有看到其中有任何内容会给你学习 3.2 带来麻烦。斯坦福的课程我觉得还是最好的资源。

我还发布了我在教授 Mac 和 iPhone 时使用的教学大纲

Memory management has not changed in iPhone. There is still no garbage collection in 3.2. That's a Mac development issue when moving from 10.4 to 10.5. I'd still recommend the Stanford course. Nothing has dramatically changed from 3.0 until 3.2 that would impact a new learner that I can think of. There were major changes from 2.0 to 3.0 in UITableView that would impact a new learner, but most tutorials are post-3.0. Stanford's definitely is. I don't see anything in there that is going to cause you trouble learning 3.2. Stanford's course I think is still the best resource.

I also have posted the syllabus I use when teaching Mac and iPhone.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文