concept photo in category ios

This is an excerpt from Manning's book Hello! iOS Development.
Table 2.1. Test yourself
Model, view, or controller
1. In the Clock app, the current time is found in a ... 2. In the Photos app, when you resize a photo by pinching it, your pinch is detected by a ... 3. In the Photos app, when you swipe a photo, the app interprets that to mean to go to the next photo. The code for that is in a ... 4. To unlock your phone, you need to slide a ... 5. In the Contacts app, your best friend’s name and phone number are stored in a ... 6. In the Calendar app, the current date is drawn in blue by the ... 7. In the Calendar app, when you touch the right arrow, the ... decides to go to the next month. 8. In the Phone app, when you click a contact, the ... dials the phone for you. 9. In the iPod app, the titles of the albums are found in a ... 10. In the Weather app, the sun and rain icons are shown in a ...
To go a little further with the sketches, let’s draw a diagram of what’s happening when you start the app and pick a photo.

This is an excerpt from Manning's book iOS Development with Swift.
Open the main storyboard, select the image view, and in the Attributes Inspector in the Image attribute, select one of the photos you’ve dragged into the project.
Don’t include photos.
The user will select a camera button in the book edit scene, which will open the default image picker controller. After taking and accepting the photo, the image will appear instead of the default cover image (see figure 13.16).
Inside the takePhoto method, instantiate a UIImagePickerController with a camera source and present it. let imagePicker = UIImagePickerController() 1 imagePicker.sourceType = .camera 2 present(imagePicker, animated: true, completion: nil) 3You can get notification that the user has taken a photo through the image picker controller’s delegate.
- 1 Creates image picker controller
- 2 Sets source to camera
- 3 Presents full screen

This is an excerpt from Manning's book iOS 7 in Action.
If you wanted to access all of the photos and videos on your iOS device, you could use the Assets Library framework, which contains classes that allow you to do just that. If you were to build a web browser, you’d use the WebKit framework. You’ll be using various frameworks to add in functionality to the apps that you build in the book. You’ve now had a general overview and introduction to OOP, Objective-C syntax, message passing, MVC, and frameworks. Because you’ll be spending most of your time in Xcode, let’s go over it in more detail so that you become more comfortable with your development environment.
You created an application using the Assets Library framework when you created the Albums app. This application allowed you to view the photos contained within albums managed by the Photos app on iOS. Truth is, you only scratched the surface of what you can do with the Assets Library in the Albums app. You only retrieved albums and photos so that you could use them to be displayed within a table and collection view.
By the end of this chapter you’ll be able to capture photos or videos using the camera, use the built-in photo picker, and access the detailed bits of information contained within each photo or video. Some of this information includes EXIF information for photos and duration and location information for videos. Together we’ll be using this knowledge to put together an app called Media Info that will allow you to do all of these things; you can see it in action in figure 7.1.
Saving a video is fairly similar to saving a photo. Instead of passing in a CGImageRef, you can pass in an NSURL for your newly created video. You can get this with the UIImagePickerControllerMediaURL key. Here’s how you’d save a video to your Assets Library:
NSURL *mediaURL = info[UIImagePickerControllerMediaURL]; [[IAAssetsLibrary defaultInstance] writeVideoAtPathToSavedPhotosAlbum:mediaURL completionBlock:^(NSURL *assetURL, NSError *error) { // Do something after completion }];As you can see, saving a photo and saving a video to the Assets Library are very similar. Let’s make changes to your code to save newly captured photos and videos.
Within the delegate method that you’ve already added in IAViewController, you’re going to first have to check the sourceType of the picker to see if something was captured or chosen from your Assets Library. This is because the same delegate method is called when an image or video is picked or when one is captured from the camera. From there you’ll have to either save the photo or video and retrieve the asset URL or retrieve the asset URL from the existing asset and then trigger your segue.
You’ve retrieved an asset from the Assets Library, and now you need to add a method to retrieve its metadata. Depending on whether it’s a photo or a video, you’ll display different metadata. If it’s a photo, you’ll show the available EXIF information. If it’s a video, you’ll show a few properties on the ALAsset using the valueForProperty: method.

This is an excerpt from Manning's book iOS 4 in Action: Developing iPhone and iPad Apps.
One more thing: iOS 4.3 allows applications to support printing through Airprint. Imagine that you can edit your photo with the iPad or iPhone and tap the Print button to get the photo printed out on your wi-fi printer! We’ll cover this function in detail later in chapter 11.
The iPhone, iPod Touch, and iPad offer an experience that’s potentially much richer and more engaging. Cameras, a microphone, a complete library of photos, and a speaker are just some of the utilities built into these devices. Less the camera, the first-generation iPad contains all the aforementioned libraries. In this chapter and the next, we’ll look at these features as part of a general exploration of media. We’ll provide deep coverage of images as well as how to use the camera.

This is an excerpt from Manning's book iPhone and iPad in Action: Introduction to SDK Development.
Table 5.1. There are a variety of view controllers, giving you considerable control over how navigation occurs in your program.
Object
Type
Summary
UIViewController View controller A default controller, which controls a view. Also the basis for the flipside controller, which appears only as an Xcode template, not as a UIKit object. UIView View Either your full screen or some part thereof. This is what a view controller controls, typically through some child of UIView, not this object itself. UITableViewController View controller A controller that uses UITableView to organize data listings. UITableView View A view that works with the UITableViewController to create a table UI. It contains UITableCells. UITabBarController View controller A controller that works with a UITabBar to control multiple UIViewControllers. UITabBar View A view that works with the UITabBarController to create the tab bar UI. It contains UITabBarItems. UINavigationController View controller A controller used with a UINavigationBar to control multiple UIViewControllers. UINavigationBar View A view that works with UINavigationController to create the navigation UI. Flipside controller View controller A special template that supports a two-sided UIViewController. ABPeoplePickerNavigationController
ABNewPersonViewController
ABPersonViewController
ABUnknownPersonViewController
UIImagePickerControllerView controller Modal view controllers that allow interaction with sophisticated user interfaces for the Address Book and the photos roll.
The iPhone offers an experience that’s potentially much richer and more engaging. A camera, a microphone, a complete library of photos, and a speaker are just some of the utilities built into the iPhone. Less the camera, the iPad contains all the aforementioned libraries and features that the iPhone does. In this chapter and the next, we’ll look at these features as part of a general exploration of media. We’ll provide deep coverage of images as well as using the iPhone’s camera.