你大概花了多长时间学习 Objective-C?

发布于 2024-09-30 20:45:36 字数 643 浏览 0 评论 0 原文

我有一个问题非常想得到解答。我已经玩了一些 Objective-C 几个星期了,我一直在读这本书 Mac OS X 的 Cocoa 编程直到第 7 章。

在第 5 章和第 6 章中,有一个你应该做的挑战,特别是第 5 章,他写道:

此练习是您在继续之前应该完成的一项重要挑战。尽管遵循我的说明很容易,但您最终会想要创建自己的应用程序。您可以从这里开始培养一些独立性。

但我在这些挑战上并没有取得成功:说实话,我不知道如何去做…… 它甚至没有帮助回顾前面的章节并窃取代码,我不知道如何让它工作以及我应该输入什么。

所以我的问题是:你大概花了多长时间才了解 Objective-C?对于读过这本书的人来说:你能够在哪里完成挑战?

我很想学习 iPhone 上的 Objective-C 程序,但现在我连挑战怎么做都不知道,我怀疑我是否有可能学会它......还有希望吗?

还应该说,除了挑战之外,他编写的大部分代码对我来说毫无意义。我不知道他为什么要写它以及它100% 是做什么的。请帮我解决这个问题!

先感谢您

I have a question I really want answered. I have been playing around with some Objective-C for a few weeks, and I have been reading in the book Cocoa Programming for Mac OS X until Chapter 7.

In chapter 5 and 6, there is a challenge you should do, especially chapter 5 where he write:

This exercise is an important challenge that you should do before moving on. Although it is easy to follow my instructions, you will eventually want to create your own applications. Here is where you can start to develop some independence.

But I have not been successful on those challenges: tbh, I have no idea how to do them...
It does not even help to look back the previous chapters and steal the code, I have no idea how to make it work and what I should be typing.

So my question is: how long did it take you to probably know Objective-C? For those who have read the book: where you able to do the challenges?

I really want to learn Objective-C program for the iPhone, but now that I don't even know how to do the challenges, I doubt it's possible for me to learn it... Is there still hope?

It should also be said that besides the challenges, much of the code he writes makes no sense to me. I am not sure why he writes it and what it does 100%. Please help me on this one!

Thank you in advance

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

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

发布评论

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

评论(7

万劫不复 2024-10-07 20:45:36

在我看来,你所需要的只是一个概念基础。

和你一样,我来自 C,所以我也去过那里。

从这里开始:

然后,学习 Objective-C(实际语言)和 Cocoa 或 Cocoa Touch:

不用担心需要多长时间。慢慢来。根据您的需要快速或缓慢地工作。

我很想学iPhone上的Objective-C程序,但现在我连挑战怎么做都不知道,我怀疑我是否有可能学会它......还有希望吗?

还应该说,除了挑战之外,他编写的大部分代码对我来说毫无意义。我 100% 不确定他为什么写它以及它的作用。

如果您尝试在 iPhone 上实现它们,这可能就是问题所在:这本书是CocoaProgrammingfor Mac OS X,Cocoa 和 Cocoa Touch 有一些重要的内容。它们的应用程序框架之间的差异(Cocoa 中的 AppKit,Cocoa Touch 中的 UIKit)。我想说要么先学习 Cocoa(并将示例实现为 Mac 应用程序),因为那是您拥有的书,要么放弃那本书并改用一本更适合 iPhone 的书。

Hillegass 的书得到了很多推荐,因此,如果您发现一本更适合想要跳过 Mac 的 iOS 程序员的书,请不要害怕推荐它。

ETA:此外,如果您根本不想对 Mac 进行编程,您当地的图书馆可能会喜欢 Hillegass 书的最新副本。

It sounds to me like all you need is a conceptual foundation.

Like you, I came from C, so I've been there.

Start here:

Then, learn Objective-C (the actual language) and Cocoa or Cocoa Touch:

Don't worry about how long it'll take. Take your time. Work as fast or as slowly as you want.

I really want to learn Objective-C program for the iPhone, but now that I don't even know how to do the challenges, I doubt it's possible for me to learn it... Is there still hope?

It should also be said that besides the challenges, much of the code he writes makes no sense to me. I am not sure why he writes it and what it does 100%.

If you're trying to implement them on the iPhone, that may be the problem: The book is Cocoa Programming for Mac OS X, and Cocoa and Cocoa Touch have some big differences between their application frameworks (AppKit in Cocoa, UIKit in Cocoa Touch). I would say either learn Cocoa (and implement the examples as Mac apps) first, since that's the book you have, or abandon that book and switch to one more iPhone-appropriate.

The Hillegass book gets a lot of recommendations, so if you find a different one that's better for iOS programmers who want to skip the Mac, don't be afraid to recommend it.

ETA: Also, if you don't want to program the Mac at all, your local library would probably love a current copy of the Hillegass book.

半世蒼涼 2024-10-07 20:45:36

我花了几天时间......不得不做几个 iPhone 应用程序,因此选择了它。

我的建议(尽管我可能会被骂)是忘记书中的例子。只要自己申请即可。给自己设定一个挑战,并找出实现它需要什么。你将通过实践来学习。 :p 尽管书籍可能有帮助,但本质上还是通过书籍来获得经验。

一旦你知道什么是“对象”以及它在 Objective C 中如何工作,那么你就已经准备好了。您所需要做的就是找出要使用的对象。之后的一切都非常简单(尽量不要说“简单”哈哈,但它很简单)。

Took me a few days... had to do a couple of iphone apps, and as such picked it up.

My advice (although I'm liable to get shouted at) is to forget the examples in the books. Just apply yourself. Set yourself a challenge, and find out what you need to achieve it. You will learn by doing. :p Even though books may help, its essentially doing it that gets you the experience.

Once you know what an "object" is and how it works in objective c then you are pretty much set. All you need to find out is what objects to use. Everything else is pretty straightforward after that (trying not to say "easy" lol, but its straightforward).

笑饮青盏花 2024-10-07 20:45:36

我从 newboston.com 学习了 Objective C 的基础知识。他是一位很好的导师..这是它的链接... http://www.youtube .com/watch?v=1Xqn5IHbusA

I learnt the basics of objective c from newboston.com . He is a good tutor.. here is the link for it... http://www.youtube.com/watch?v=1Xqn5IHbusA

活雷疯 2024-10-07 20:45:36

我真的刚刚开始,我发现一个很棒的在线教程,它教会了我一些基础知识。我已经完成了大约30%。到现在才两天,学到了很多东西。它相当简短,但具有描述性(不像其他教程那么乏味)

今天,我买了另一本书,似乎适合简单的 iPhone 应用程序。它被称为 iOS SDK 编程:初学者指南。看起来不错,因为它显示了 Objective-C 语言和 Xcode 的 Interface Builder 之间的良好联系(真正吸引人的视觉效果:])

I literally just got started and I found an awesome tutorial online that has taught me some basics. I'm about 30% through it. Only been two days so far and learned a lot. It's fairly short, but descriptive (not as tedious as other tutorials)

Today, I bought another book that seems good for simple iPhone apps. It's called iOS SDK Programming: A Beginner's Guide. Looks good because it shows a good connection between the Objective-C language and Xcode's Interface Builder (the really appealing visual stuff :] )

伤感在游骋 2024-10-07 20:45:36

前往 iTunes 并搜索 CS193P,您将在 斯坦福大学的 CS193P 课程。我有没有提到它们是免费的?

Go to iTunes and search for CS193P, you will find the video and slides from the CS193P class at stanford. Did I mention they are free?!

暮色兮凉城 2024-10-07 20:45:36

你已经可以编程了吗?
我总是建议从脚本语言开始(Ruby 和 Python 非常容易学习),而不是转向更难的语言,比如 Objective-C,直到您 100% 熟悉基础知识。

Can you already program?
I'd always suggest starting with a scripting language (Ruby and Python are very easy to learn) and not moving onto a harder language, like Objective-C, until you are 100% comfortable with the basics.

半岛未凉 2024-10-07 20:45:36

我说不要失去希望!

强烈建议在OOP 在深入研究 Objective-C 之前,因为 Cocoa Touch(iOS 的基础)非常依赖于该编程范式。

我使用 iPhone 编程:大书呆子牧场指南 来学习 Objective -C 从特定于 iOS 的角度来看。我在工作和学习之间花了大约 2-3 周的时间来完成这本书并准备好处理我自己的项目。与您所描述的书一样,《Big Nerd Ranch Guide》还有一些额外的挑战,您可以通过这些挑战来测试您的知识和参考 Apple 文档的能力。

如果您还没有这样做,请添加书签 Apple 自己的文档,因为它是您能找到的最佳参考资料。

I say don't lose hope!

I highly suggest having a foundation in OOP before diving into Objective-C as Cocoa Touch (the foundation of iOS) is very dependent on that programming paradigm.

I used iPhone Programming: The Big Nerd Ranch Guide to learn Objective-C from an iOS-specific perspective. It took me about 2-3 weeks between work and school to complete the book and ready to tackle my own projects. Like the book you described, the Big Nerd Ranch Guide has some additional challenges that you can do to test your knowledge and ability to reference Apple's documentation.

If you haven't already done so, bookmark Apple's own documentation as it's the best reference material you will find.

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