p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning iOS 5 Application Development (http://p2p.wrox.com/forumdisplay.php?f=670)
-   -   Chapter 14: Rect defined but not used? (http://p2p.wrox.com/showthread.php?t=88432)

loek September 12th, 2012 11:52 AM

Chapter 14: Rect defined but not used?
 
In Chapter 14 in the example for accessing the Photo Library a variable called "rect" is defined but subsequently not used:
CGRect rect =
[[info valueForKey:UIImagePickerControllerCropRect]
CGRectValue];


Should there not be another line of code in this else branch where the rect is defined? In the section where the image is displayed, something like:
imageView.bounds = rect;

Just wondering...


All times are GMT -4. The time now is 11:00 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.