iOS Programming: The Big Nerd Ranch Guide, 3e (Big Nerd Ranch Guides) by Hillegass Aaron & Conway Joe
Author:Hillegass, Aaron & Conway, Joe [Conway, Joe]
Language: eng
Format: epub
Tags: COM051370, Big Nerd Ranch Guides, iPhone / iPad Programming
Publisher: Pearson Education (US)
Published: 2012-03-14T05:00:00+00:00
UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
[item setThumbnailDataFromImage:image];
Now that BNRItems have a thumbnail, you can use this thumbnail in ItemsViewController’s table view. In ItemsViewController.m, update tableView:cellForRowAtIndexPath:.
[[cell valueLabel] setText:
[NSString stringWithFormat:@"$%d", [p valueInDollars]]];
[[cell thumbnailView] setImage:[p thumbnail]];
return cell;
}
Now build and run the application. Take a picture for a BNRItem instance and return to the table view. That row will display a thumbnail image along with the name and value of the BNRItem. (Note that you will have to retake pictures for existing BNRItems.)
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6233)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(5933)
Kotlin in Action by Dmitry Jemerov(4617)
React Native - Building Mobile Apps with JavaScript by Novick Vladimir(2326)
Learning Angular - Second Edition by Christoffer Noring(2163)
Pride and Prejudice by Jane Austen(2085)
Mobile Forensics Cookbook by Igor Mikhaylov(1803)
Computers For Seniors For Dummies by Nancy C. Muir(1764)
Bulletproof Android: Practical Advice for Building Secure Apps (Developer's Library) by Godfrey Nolan(1663)
Building Android UIs with Custom Views by Raimon Ràfols Montané(1618)
Android Development with Kotlin by Marcin Moskala & Igor Wojda(1609)
Building Progressive Web Apps: Bringing the Power of Native to the Browser by Ater Tal(1529)
1936941139 (N) by Bob Rosenthal(1494)
Android App Development by Franceschi Hervé J.;(1492)
Ember.js in Action by Joachim Haagen Skeie(1463)
Hands-On Internet of Things with MQTT by Tim Pulver(1385)
Hands-On Design Patterns with React Native by Mateusz Grzesiukiewicz(1374)
Practical Industrial Internet of Things Security by Sravani Bhattacharjee(1312)
Voice User Interface Projects by Henry Lee(1266)