View Single Post
  #1 (permalink)  
Old September 12th, 2012, 11:52 AM
loek loek is offline
Registered User
Points: 10, Level: 1
Points: 10, Level: 1 Points: 10, Level: 1 Points: 10, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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...