title: Custom Image Rotation?
body: <p>How can I rotate these images clockwise? When they load they are on their side for some reason. </p>
  
  <pre><code>    //load the image
      API* api = [API sharedInstance];//afnetworking call
      int IdPhoto = [[data objectForKey:@"IdPhoto"] intValue];
      NSURL* imageURL = [api urlForImageWithId:[NSNumber numberWithInt: IdPhoto] isThumb:YES];
      AFImageRequestOperation* imageOperation = [AFImageRequestOperation imageRequestOperationWithRequest: [NSURLRequest requestWithURL:imageURL] success:^(UIImage *image) {
          //create an image view, add it to the view
          UIImageView* thumbView = [[UIImageView alloc] initWithImage: image];
          thumbView.frame = CGRectMake(0,0,90,90);//thumbsize of image 180 is width and size 0 is spacing coordinates x,y
          thumbView.contentMode = UIViewContentModeScaleAspectFit;
          [self insertSubview: thumbView belowSubview: caption];
      }];
      NSOperationQueue* queue = [[NSOperationQueue alloc] init];
      [queue addOperation:imageOperation];
  }
  
  return self;
  }
  @end
  </code></pre>