Beginning iPhone 3 Development

David Mark, Jeff LaMarche

Mentioned 15

Are you a programmer looking for a new challenge? Does the thought of building your very own iPhone app make your heart race and your pulse quicken? If so, Beginning iPhone 3 Development: Exploring the iPhone SDK is just the book for you. Updated and revised for iPhone SDK 3, many of the discussions in the original book have been clarified to make some of the more complex topics easier to understand. In addition, all of the projects have been rebuilt from scratch using the SDK 3 templates. Assuming only a minimal working knowledge of Objective-C, and written in a friendly, easy-to-follow style, this book offers a complete soup-to-nuts course in iPhone and iPod touch programming. The book starts with the basics, walking you through the process of downloading and installing Apple's free iPhone SDK, and then stepping you though the creation of your first simple iPhone application. From there, you'll learn to integrate all the interface elements iPhone users have come to know and love, such as buttons, switches, pickers, toolbars, and sliders. You'll master a variety of design patterns, from the simplest single view to complex hierarchical drill-downs. The confusing art of table building will be demystified, and you'll see how to save your data using the iPhone file system. You'll also learn how to save and retrieve your data using SQLite, iPhone's built-in database management system. In addition, you'll also learn about Core Data, an important persistence mechanism that has just been added with SDK 3. And there's much more! You'll learn to draw using Quartz 2D and OpenGL ES, add multitouch gestural support (pinches and swipes) to your applications, and work with the camera, photo library, accelerometer, and built-in GPS. You'll discover the fine points of application preferences and learn how to localize your apps for multiple languages. You can discover more about this book, download source code, and find support forums at the book's companion site, at www.iphonedevbook.com. The iPhone 3 update to the best-selling and most recommended book for iPhone developers Packed full of tricks, techniques, and enthusiasm for the new SDK from a developer perspective The most complete, useful, and up-to-date guide to all things having to do with Apple's iPhone SDK What you’ll learn Everything you need to know to develop your own best-selling iPhone apps Best practices for optimizing your code and delivering great user experiences Who this book is for Anyone who wants to start developing for iPhone and iPod touch What's changed from the first edition of Beginning iPhone Development All code samples have been updated to follow current Apple coding conventions The autorotation code has been updated to use the new single-step fast autorotation instead of the original two-step method A new section has been added introducing Core Data, covering basic principles and showing how to build a simple Core Data application All the table view-related chapters have been updated to use table view cell styles. They've also been updated to use textLabel and detailTextLabel instead of the deprecated text property of the table view cell. All known errata have been corrected All projects have been rebuilt from scratch using the SDK 3.0 templates Many concepts have been clarified based on feedback and supplemented with information we've learned from another year of using the SDK Table of Contents Welcome to the Jungle Appeasing the Tiki Gods Handling Basic Interaction More User Interface Fun Autorotation and Autosizing Multiview Applications Tab Bars and Pickers Introduction to Table Views Navigation Controllers and Table Views Application Settings and User Defaults Basic Data Persistence Drawing with Quartz and OpenGL Taps, Touches, and Gestures Where Am I? Finding Your Way with Core Location Whee! Accelerometer! iPhone Camera and Photo Library Application Localization Where to Next?

More on Amazon.com

Mentioned in questions and answers.

I'm a web developer and I'm getting envious of all the cool iPhone apps. I know nothing about C or what ever language they use to make iPhone apps. I really have no idea where to start. What do I need to do? Should I take a class, buy a book? I have a pretty good grasp on programing, I do tons of HTML, CSS and Javascript development and some PHP and Action Scripting. I'm not very good with Object Oriented Programing but I think I could pick it up if I used it more. I love video tutorials like lynda.com or net.tutsplus.com. I learn best buy jumping in and getting my hands dirty.

You may start by some online videos as you love video tutorials, the Stanford course is one of the best.

Then you can pick up a book or two.

If you still feel comfortable after that, you may start a real project and ask questions on StackOverflow along the journey ;-)

Enjoy~

If you really want to know how to make a good iPhone app, don't take shortcuts. Leave all of the intermediate products out and forget about just wrapping a website up in a UIWebView. Learning how to do it the right way will make you a better, more well-rounded programmer.

Since you don't know much C or Objective-C, I'd recommend reading Programming in Objective-C 2.0 by Stephen Kochan. It's a great book for going from no C experience to learning Objective-C. It also includes some iPhone-specific stuff.

i am starting my experience with iphone sdk. and i have a question, which is i am trying to create two pages to the app but i don't know how to link them or design them. like when i start the Xcode i find one page named View to design in it, i want to make that page a welcoming page then the user choose one of the three choices he see in that page. Once he clicked on one of them the program take him to the next page or the page he chose.

thank you

You really need a good book, I recommend Beginning iPhone 3 Development by Apress.

I've a great interest on iPhone Development and How i can start iPhone development ?

I've no basic deals with C but I've programming knowledge and concepts.

Does anyone know of a website or resource to learn about important files / directory structures or data within the iPhone?

Soon i'll be learning to develop iPhone applications and I want to know everything about its internals, if anyone knows a resourse that would be great.

What I want to do is.

How to access the database. Where system settings are stored. How to gain access to the Mobile Comm Server

etc...

Begining IPhone Development by Jeff LaMarche and David Mark

I have decided to enter the iPhone App development arena and as such have a couple of questions:

  • Coming from a business management background and having no experience/knowledge whatsoever in developing, what would be the right way to start?

  • I am aware that I should learn Objective C, to begin with; as well as OOP etc... will reading books and fiddling with iPhone SDK put me on the right track?

What else do I need?

P.S: I am very aware that this will/might be daunting to begin with but I am prepared and motivated.

Here is what i did ( although i am from a programming background ).oder important

  • Intel based mac
  • Join dev program ( this could be the last step , but i wanted to something to keep my motivation high :) )

  • Read first 6 chapters of Programming in Objective-C 2.0

  • started watching stanford iphone course ( available on itunes )

  • Started reading the grape-fruit book ( while referring to 3 for obj c questions )

  • Review tutorials/projects from appsmuck

  • Figure out how to use apple documentation as reference

  • Subscribe to iphone blogs / podcasts like mobile orchard / iphone devs twitter accounts ( there are several good ones )

  • Add iphone cocoa xcode objective c tags to stackoverflow account

Update I was just reading this from prag programmers ..seems like high level overview that answers your question.

In Interface Builder, I dragged a UITableViewController object from the library into the project. Then, a tableview popped up. How do I get that tableview inside my already existing window?

Thanks, I'm totally lost!

That tableview is part of the UITableViewController, and is connected to its view property. The second window pops up so you can set that UITableView's properties directly.

If you're just starting out, I'd suggest checking out a few tutorial. The site I started learning from is called http://icodeblog.com/, and I'd also recommend the Beginning iPhone Development book by Jeff LaMarche and Dave Mark. Also, if you have iTunes, the Stanford iTunes class is a terrific way to learn in-depth about iPhone development, and it is free to download from iTunesU.

Possible Duplicate:
Getting Started With iPhone Development

Any one Can suggest a book for begineer.I need all the basics

Thanks in advance

I read

Beginning iPhone Development by Mark/LaMarche/Nutting (47 Reviews, 4.5/5 stars)

and

iPhone SDK Development by Dudney/Adamson (31 Reviews, 4.5/5 stars)

and I can recommend both.

I recommend the "iPhone Programming" by Aaron Hillegass. ( Amazon Link - http://www.amazon.com/iPhone-Programming-Ranch-Guide-Guides/dp/0321706242/ref=pd_bxgy_b_img_c )

Aaron wrote the best cocoa programming book, also. ( If you are also interested in Cocoa programming, Aaron's Cocoa Programming is really good for you, too! )

Additionally, I recommend the "Programming in Objective-C 2.0" for learning objective-C ( Amazon Link - http://www.amazon.com/Programming-Objective-C-2-0-Stephen-Kochan/dp/0321566157/ref=pd_bxgy_b_img_b )

First of all a good Objective C book:

Then an iOS book:

I would start reading these two for the moment. They should get you up and running.

Hey im looking to developed some webservices for an Iphone, id like to do this in a .NET environment.

Whats the best way to get started i.e.

Can I just go ahead and create the webservices I need first off all like any other webservice or does there need to be some consideration since these webservice will be built for IPhone.

Also my Webservices will look something getAllJobs whatever and pull down a bunch of data which is fine, is it always possible to update details on a job and send this back via another webservice. ?

And lastly how does the actual UI for the Iphone get developed ?

You should code your web services (in general) without any regard to the consumer. Ideally, should you strive for a RESTFUL design since this makes it easier to use.

As for the "How does the UI get developed", well they're tons of on-line and hardcopy sources to get started with this. Some of the best books for a beginning are:

Beginnning iPhone Development

I am just beginning to learn objective-c and I am looking for a good place to start. Every book I pick up starts off like I already know what an object is and what an instance of an object is. Is there anywhere online or in a book where the basics of objects and classes and other knowledge I will need to read the books that I currently have? Here are some of the terms I need to know that the books are already assuming I know:

Object-Oriented Terms

Class, Instance, Message, Method, Instance Variable, Inheritance, Superclass/Subclass, and Protocol

Any help is greatly appreciated. I am not a slow learner, it is just all of the information I have found on the language so far seems to start off like you already know the information and terms above. I just need to be pointed in the right direction. I have knowledge of other programming languages, I am just looking to add to my library.

I like the book by Aaron Hillegass - he of Big Nerd Ranch fame. Not sure about the object assumption stuff, but the book is quite good.

I really recommend you the Stanford video mentioned above by a user and read this book as well. Along your line, be sure to try code something by your self, take a look at the sample code that is provided on Apple's developer site. Remember that practice is the best way to learn.

I am new to iPhone application development so that i want to learn cocoa touch framework.

As i want to read on cocoa touch framework if anyone can help me to find some good resources to learn the framework as

ebooks tutorials and videos

it will be very useful to me .

The search box is your friend :) There is a great discussion here: Howto Articles for iPhone Development Objective-C

Personally, I'd suggest starting with Aaron Hillegass' Cocoa Programming for Mac OS X and then read Beginning iPhone Development by Dave Mark and Jeff LaMarche.

Apple has a lot of resources on their site: iPhone Dev Center

Is there a better resource than the following link for programming the preference pane for an iPhone app? http://developer.apple.com/iphone/library/documentation/PreferenceSettings/Conceptual/SettingsApplicationSchemaReference/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007005

Side question: can the bundle version be automatically picked up from within the Settings.bundle?

The chapter on Application Preferences in the book Beginning iPhone Development

That chapter is excellent (as is the whole book) for a beginner.

I would like to build a music bisualiser for the iphone. I have development experience but not on the iphone platform. Can anyone recommend any books worth buying to get started...?

My friend (who knows nothing about programming what-so-ever) asked me if I could develop an iPhone application that lets the user select an artist from thier current synced artists on their iPhone music library, and display to them a list of concerts they will be playing in the near future. Maybe even use your current location to display the certain one you would be interested in.

Obviously, I told him no.

As I have no iPhone development experience and have only recently really started programming properly, I don't think I'm capable. But I'd still like to explore, seeing as I have just purchased a MacBook anyways!

Any ideas on how to approach this app?

Thanks in advance to everyone!

The best place to start learning iPhone/iPad programming in general is to read this book:

http://www.amazon.com/Beginning-iPhone-Development-Exploring-SDK/dp/1430224592

And more specific to your question, yes, apps are allowed to access the iPod music library in the phone, through the MPMediaQuery class and its brethren:

http://developer.apple.com/library/ios/#documentation/Audio/Conceptual/iPodLibraryAccess_Guide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008765

well i have search a lot for iphone material to get started ,

but i found most of the stuff that divided either in iphone development or in learning objective C only.

Can someone please send me links/ebooks/articles/videos where once can learn objective c and iphone together ?

It is arguably better if you learn objective-c before delving into the iphone framework (Cocoa Touch and associated frameworks). The iphone sdk is built around objective-c and a firm understanding of the language is absolutely essential for understanding the documentation about how to use the iphone sdk.

Having said that, an excellent book that teaches objective-c and then provides an introductiojn to iphone programming is Kochan's Programming in Objecitve-C This will get you up and running with objective-c in a minimal amount of time, after which you can start with Beginning iPhone 3 Development for a thorough coverage of the main iphone sdk paradigms.

I was wondering if someone could suggest me some good books for developing iPhone games applications.

Thanks.

In general, I'm wary of Games Programming books. I find it better to learn from a normal programming book, and apply what you learn into games. Then you can use the Game Programming book as more of a reference.

I use this: http://www.amazon.co.uk/Beginning-iPhone-Games-Development-Professionals/dp/1430225998/ref=sr_1_1?ie=UTF8&qid=1296645855&sr=1-1-spell

But I learned iOS from this: http://www.amazon.co.uk/Beginning-iPhone-Development-Exploring-SDK/dp/1430224592/ref=pd_bxgy_b_img_c