2013-07-31 75 views

回答

0

你想旋轉,那麼你要做的旋轉圖像?
如果你想只顯示它在視圖中,UIImageView包裝它,旋轉ImageView的並插入到視圖:

-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info 
{ 
    UIImage* image = [[info objectForKey: UIImagePickerControllerOriginalImage] fixOrientation]; 
    UIImageView *imageView = [[UIImageView alloc] initWithImage:image]; 
    imageView.transform = CGAffineTransformMakeRotation(M_PI * 90/180); 
    [self.view addSubview:imageView]; 
}