|
|
|
|
|
|
|
iPhone Programming : Other Native Platforms - PhoneGap |
If you’re a web developer who wants to build mobile applications in HTML and JavaScript while still taking advantage of the hardware features on the iPhone, Android, and BlackBerry devices, you may want to take a look at the PhoneGap platform. |
|
iphone Programming : Integrating Your Application - Using the Address Book |
Once you reach the lower levels of the Address Book framework—for instance, dealing with individual person records—the interface presented by the framework is in C rather than Objective-C. This is especially obvious when dealing with the address book programmatically rather than interactively using the navigation controller. |
|
|
iphone Programming : Handling Data - Storing Data |
If the user creates data while running your application, you may need a place to store the data so that it’s there the next time the user runs it. You’ll also want to store user preferences, passwords, and many other forms of data. |
|
iphone Programming : Handling Data - Regular Expressions |
Regular expressions, commonly known as regexes, are a pattern-matching standard for text processing, and are a powerful tool when dealing with strings. With regular expressions, an expression serves as a pattern to compare with the text being searched. |
|
iphone Programming : Handling Data - Parsing JSON (part 2) - The Twitter Trends Application |
There are a few bits and pieces that I haven’t added to this application but that you really should add if you are going to release it. Most of it has to do with error handling; for instance, you should do a reachability check before trying to retrieve the JSON document. However, this example illustrated that retrieving and parsing JSON documents is a relatively simple task. |
|
|
iphone Programming : Handling Data - Parsing XML |
The two widely used methods for parsing an XML document are SAX and DOM. A SAX (Simple API for XML) parser is event-driven. It reads the XML document incrementally and calls a delegate method whenever it recognizes a token. |
|
iphone Programming : Handling Data - Data Entry |
The Cocoa Touch framework offers a number of UI elements, ranging from text entry fields to switches and segmented controls. Any of these can be used for data entry, but often when we talk about data entry we’re talking about getting textual information into an application. |
|
|
|
iPhone SDK 3 : Objective-C and Cocoa - Classes |
In object-oriented languages, an object encapsulates attributes and provides methods. These methods can be used by the outside world (i.e., other objects) to change the object's state as well as to interact with the object. All this can be achieved without opening the actual implementation of the object's behavior to the outside world. |
|
iPhone SDK 3 : Creating Interfaces |
All iPhone apps have windows (usually one.) A window is a specialized view that is used to host other views. A view is a rectangle piece of real-estate on the 320 × 480 iPhone screen. You can draw in a view, animate a view by flipping it, and you can receive multi-touch events on it. |
|
|
|
|
iphone Programming : Adding Missing Features (part 2) - Adding a Launch Image |
One of the ways in which the iPhone and the iPod touch cheat is by providing launch images. A launch image is immediately displayed on the screen when the application is started before the UI is displayed. Your application displays the launch image file while loading, which means there are no more blank screens while the application loads |
|
|
iphone Programming : Using Sensors - Accessing the Proximity Sensor |
The proximity and ambient light sensors are two separate sensors. The ambient light sensor is used to change the brightness level of the device’s screen automatically, while the proximity sensor is used by the device to turn the screen off when you put the phone to your ear to make a call. |
|
iphone Programming : Using Sensors - Using the Digital Compass |
In addition to the accelerometer, the iPhone 3GS has a magnetometer that acts as a digital compass. Combining the heading (yaw) information returned by this device with the roll and pitch information returned by the accelerometer will let you determine the true orientation of the iPhone in real time. |
|
iphone Programming : Using Sensors - The Core Location Framework |
The Core Location framework is an abstraction layer in front of several different methods to find the user’s location (and, by extrapolation, her speed and course). It can provide the latitude, longitude, and altitude of the device (along with the level of accuracy to which this is known). |
|
iPhone SDK 3 : SDK and IDE Basics |
Expand the Classes and Other Sources groups. You will notice several files that live underneath these two groups. Click on the main.m file and expand to a full-editor view. |
|
|