开发者

How long did it take you to learn Objective-C probably? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

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开发者_如何学C 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


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:

  • Object-Oriented Programming with Objective-C

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

  • The Objective-C Programming Language
  • Cocoa Fundamentals Guide (covers both Cocoa and Cocoa Touch, as the concepts are largely the same)
  • Memory Management Programming Guide for Cocoa (and Cocoa Touch)
  • Model Object Implementation Guide
  • iOS Application Programming Guide (Cocoa Touch specific)

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.


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).


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


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 :] )


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?!


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜