Phát triển ứng dụng cho iPhone và iPad - part 41 pot
... 128–131 templates Fetch Request templates, 155 Navigation-based Application, 4 RootViewController, 94 Split View-based Application projects, 91 Tab Bar Application, 5 View-based Applications, 5 TermExtract application, ... 159 validateForUpdate method, 215 validation multi-fi eld, 215–217 single-fi eld, 213–215 validation rules, 149–150 Xcode Data Modeling tool, 158–159 value updates, KVC (key-...
Ngày tải lên: 04/07/2014, 21:20
... of the Model - View - Controller architecture that underlies most iPhone applications. BUILDING A SIMPLE DATA - DRIVEN APPLICATION Many applications that you will build for the iPhone will ... Data - Driven Application ❘ 7 CH001.indd 7CH001.indd 7 9/18/10 11:06:37 AM9/18/10 11:06:37 AM PART I Manipulating and Displaying Data on the iPhone and iPad CHAPTER 1:...
Ngày tải lên: 04/07/2014, 21:20
... 49CH002.indd 49 9/20/10 2:31 :41 PM9/20/10 2:31 :41 PM 52 ❘ CHAPTER 2 THE IPHONE AND IPAD DATABASE: SQLITE To set the Catalog text at the top in the Navigation Controller, double - click MainWindow.xib ... Figure 2 - 17. FIGURE 2 - 16: Product detail view Connecting to Your Database ❘ 53 CH002.indd 53CH002.indd 53 9/20/10 2:31:44 PM9/20/10 2:31:44 PM 56 ❘ CHAPTER...
Ngày tải lên: 04/07/2014, 21:20
Phát triển ứng dụng cho iPhone và iPad - part 16 pot
... Data simplifi es the creation of the Model part of the Model - View - Controller architecture. The foundation of the Core Data tool set is a code - based API used to manipulate your data objects ... AM < ?xml version=”1.0” encoding=”UTF-8”? > < !DOCTYPE plist PUBLIC -/ /Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/ PropertyList-1.0.dtd” > < plist...
Ngày tải lên: 04/07/2014, 21:20
Phát triển ứng dụng cho iPhone và iPad - part 18 pot
... userInfo property that returns an NSDictionary containing user - defi ned key - value pairs. The User Info tab allows you to create key - value pairs and associate them with the current entity. At ... [[TaskEntryViewController alloc] init]; FIGURE 5 - 6: Text entry interface CH005.indd 141CH005.indd 141 9/18/10 9:34:29 AM9/18/10 9:34:29 AM 140 ❘ CHAPTER 5 INTRODUCING CO...
Ngày tải lên: 04/07/2014, 21:20
Phát triển ứng dụng cho iPhone và iPad - part 19 potx
... (CoreDataGeneratedAccessors) - (void)addRelatedProductsObject:(Product *)value; - (void)removeRelatedProductsObject:(Product *)value; - (void)addRelatedProducts:(NSSet *)value; - (void)removeRelatedProducts:(NSSet ... (void)removeRelatedProducts:(NSSet *)value; - (void)addCountriesObject:(NSManagedObject *)value; - (void)removeCountriesObject:(NSManagedObject *)value;...
Ngày tải lên: 04/07/2014, 21:20
Phát triển ứng dụng cho iPhone và iPad - part 22 potx
... code. FIGURE 7 - 6: Task data editing screens (a) Text Editing Screen - EditTextController (b) Priority Selection Screen - EditPriorityController (c) Location Selection Screen - EditLocationController (d) ... Listing 7 - 4. LISTING 7 - 4: EditPriorityController.h #import < UIKit/UIKit.h > #import “Task.h” @interface EditPriorityController : UITableView...
Ngày tải lên: 04/07/2014, 21:20
Phát triển ứng dụng cho iPhone và iPad - part 24 potx
... Filtering Results with NSPredicate When the user taps the Hi - Pri button, your code should fi lter the list of tasks to show only high - priority tasks. Conversely, when the user selects the All ... alloc] initWithTitle:@”Hi-Pri Tasks” message:nil delegate:self cancelButtonTitle:@”OK” otherButtonTitles:nil ] autorelease]; // Use Fetched property to get a list of high-pri task...
Ngày tải lên: 04/07/2014, 21:20
Phát triển ứng dụng cho iPhone và iPad - part 27 pot
... looks like this: 201 0-0 8-0 3 12:52:23.277 Tasks[6100:207] Unresolved error Error Domain=NSCocoaErrorDomain Code=1 3410 0 “The operation couldn’t be completed. (Cocoa error 1 3410 0.)” UserInfo=0x5b298a0 ... {contents = “NSStoreUUID”} = < CFString 0x5b2e3a0 [0x26db380] > {contents = “6B5E801A-9B0 0-4 F1 7-8 58D-726679EE28C3”} } , reason=The model used to open the store is inc...
Ngày tải lên: 04/07/2014, 21:20
Phát triển ứng dụng cho iPhone và iPad - part 32 potx
... of memory. Because memory is such a scarce resource on mobile devices such as the iPhone and iPad, Apple chose not to provide a DOM parser with the SDK. However, if you need the functionality ... memory. The parser provided by Apple in the iPhone SDK is a SAX - based parser. SAX stands for Serial Access Parser. SAX implements an event - driven parser that calls delegate met...
Ngày tải lên: 04/07/2014, 21:20