2011-07-26 18 views
0

我需要製作一個應用程序,在我看來有一個按鈕用於在iPhone中使用相機拍照。在拍攝照片後,如果沒有來到第一個視圖,請轉到下一個視圖,然後我需要在uiimageview中顯示該圖片。我知道如何使用相機拍攝照片並將其顯示在第一個視圖的Uiimageview中。使用iphone拍攝圖像並轉到下一個視圖而不顯示第一個視圖

Firstview-> buttoon採取照相機 - > secondview->與圖片uimageview

+2

你在等什麼? – Robin

回答

1

我有相同的情況下,嘗試這樣

當按鈕點擊 - 與動畫推SecondViewController:在你的viewDidAPpear調用攝像頭類中沒有再

- 再整理後,設置圖像ImageClicker控制器的didfinishpickimage代表中的imageview。

希望工程!

0

可以在imagePicker的委託方法做這樣的

didFinishPickingMedia

得到UIImage對象

那麼

SecondViewController *second = [[SecondViewController alloc] initWithNibName:@"SecondViewController"]; 
[self.navigationController pushViewController:second animated:YES]; 
//imageView is an IBOutlet UIImageView object and should be created using properties in SecondViewController you know what I mean (@property,@synthesize) 
second.imageView.image = image; //you got using imagePicker 
[second release]; 

這是所有

相關問題