... around 30% of iOS devices today are
running iOS versions that are about a year or a year and a half old. If today we are
working with iOS 5, there are still iOS devices out there running iOS, 3 for ... runs on iOS 5 out to the App Store.
Some of the classes that we use are available only on specific versions of iOS. For in-
stance, the NSJSONSerialization class is available onl...
... ";
[self.view addSubview:self.myTextField];
And the results are shown here:
2. 14 Accepting User Text Input with UITextField | 2 05
Figure 2- 47. A placeholder is shown when there is no text in a text field
Text ... init] currencySymbol];
currencyLabel.font = self.myTextField.font;
20 6 | Chapter 2: Implementing Controllers and Views
Figure 2 -50 . A text view consuming the ent...
... navigation bar, you will see an interface similar to that shown in Figure 2- 72:
2. 22 Displaying Popovers with UIPopoverController | 25 9
self.myTableView.dataSource = self;
self.myTableView.delegate ... navigationController;
- (BOOL) application:(UIApplication *)application
2. 22 Displaying Popovers with UIPopoverController | 25 3
Figure 2- 80. Keyboard obstructing the bottom ha...
... block object of
choice (Example 5- 2) .
Example 5- 2. Calling the block object in another method
- (void) doTheConversion{
NSString *result = [self convertIntToString: 123
usingBlockObject:intToString];
... num = 1}
5. 5 Performing UI-Related Tasks with GCD | 3 75
});
});
In this chapter, you will learn all there is to know about GCD and how to use it to write
modern multithreaded a...
... is just a sample location */
CLLocationCoordinate2D location;
location.latitude = 50 . 821 916 929 07181;
location.longitude = -0.1381176710 128 78 42;
/* Create the annotation using the location ... MKPinAnnotationColorRed:{
result = REUSABLE_PIN_RED;
break;
6 .5 Displaying Pins with Different Colors on a Map View | 4 45
Figure 6 -2. Adding the CoreLocation and the MapKit framewo...
... YES;
}
10.3 Retrieving Properties of Address Book Entries | 55 5
9.6 Playing Video Files
Problem
You would like to be able to play video files in your iOS application.
Solution
Use an instance of the MPMoviePlayerController ... Nahavandipoor
Address = ABMultiValueRef 0x684ad50 with 2 value(s)
0: _$!<Home>!$_ (0x684af00) - vandad.np@gmail.com (0x684af20)
1: _$!<Work>!$_ (0x6...
... (second and third
generations), provided that the iOS on these devices has been updated to iOS 4.0 or
iOS 5. Furthermore, a device could have iOS 5. 0 or later installed on it, but the under-
lying ... shown in Fig-
ure 12- 3. After the user presses the Yes button, iOS will relaunch our application and
the user will see a screen similar to that shown in Figure 12 -5.
Figure 12...
... pixels.
15. 0 Introduction | 7 35
Figure 15- 4. Saving our Xcode project on disk
4. On the right side, select Objective-C class, and then press Next (see Figure 15- 5).
15. 0 Introduction | 739
Figure 15- 6. ... 739
Figure 15- 6. Creating a subclass of UIView
15. 0 Introduction | 741
Figure 15- 5. Creating a new Objective-C class in Xcode
5. In the next screen (Figure 15- 6), make sure t...