2011-01-11 63 views
2

我編寫了camara應用程序的代碼。該視圖有一個按鈕和一個UIimageview。當我點擊相機時,相機將在拍攝圖像後打開,當我點擊使用按鈕時,它僅在UIimageview中顯示一些部分,這也是橫向方向。捕獲圖像存儲在UIimage視圖顯示風景方向

回答

-1
CGSize size=CGSizeMake(editView.bounds.size.width,editView.bounds.size.height); 
UIGraphicsBeginImageContext(size); 
[editView.layer renderInContext:UIGraphicsGetCurrentContext()]; 
UIImage *viewImageCaptureSend = UIGraphicsGetImageFromCurrentImageContext(); 
UIGraphicsEndImageContext(); 
UIImageWriteToSavedPhotosAlbum(viewImageCapture, nil, nil, nil); 
+1

thnks老闆,但它無法正確顯示.. – pradeep 2011-01-12 04:31:46