Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-27-2012, 09:43 AM   #1 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default Use the Xcode help system!

Xcode includes a very deep and broad set of documents about iOS. It seems some people don't even know it's there.

Even for those who know it's there, there are some tricks to getting the most out of it. Below is an explanation on how to use the Xcode help system to find information about the various APIs included in iOS:


Using the Xcode help system to search for documents on different APIs:

Pull down the help menu and select "Documentation and API reference"

Tap on the magnifying glass in the upper left corner, by the input box, and select "show find options" if it isn't active already.

Make the following change to the find options:
  • Under "Match type", select "contains". That lets you search for partial names. It's slower, but much more useful. You can type part of a method or class name and Xcode will find it.
  • Under doc sets, select the version of iOS you are using for development (iOS 5 perhaps) This narrows the search to the current SDK version, speeds up searching, and avoids duplicate search results. Do not select any Mac OS versions, because the Mac OS versions of many APIs are subtly different in ways that will confuse the hell out of you. Also, there are APIs in Mac OS that are not in iOS Some of these will even work on the simulator, even though they are completely unavailable on an iOS device. (like NSURLDownload).
  • Under Languages, select "C" and "Objective C". You need C because some of the Core Foundation frameworks are C. You want to turn off Java and JavaScript so your search results aren't cluttered with things you don't care about.

Now type in "NSArray" into the search field. The list of matches will be shown on the left side. You should see an entry under "Reference" for NSArray. Select it to open the NSArray class reference.

I strongly suggest reading the whole class reference overview for NSArray and NSMutableArray, NSString and NSMutableString, and NSDictionary and NSMutableDictionary. These are so fundamental that you really need to know them inside and out. The section of each overview called "tasks" is especially useful, since it groups all the methods for these classes by the types of jobs you need to do.

Don't bother with the subclassing notes. Subclassing these objects is advanced stuff, and not recommended for most iOS developers. They are a type of object called a "class cluster" that makes subclassing difficult.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 01-27-2012, 10:03 AM   #2 (permalink)
Daddy Cool
iPhone Dev SDK Supporter
 
MarkC's Avatar
 
Join Date: Mar 2009
Location: Yorkshire, England
Age: 100
Posts: 1,616
MarkC is on a distinguished road
Default

Cheers Duncan, you are the Master of Nuggets!!

MarkC is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 407
10 members and 397 guests
Atatator, condor304, FrankWeller, imac74, MAMN84, mraalex, n00b, PowerGoofy, tim0504, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,674
Threads: 94,123
Posts: 402,908
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Atatator
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:57 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0