看板 MacDev 關於我們 聯絡資訊
我在view1上有這樣的程式碼 -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {UIImage *image = [info valueForKey:UIImagePickerControllerOriginalImage]; self.photo.image = image; [self dismissViewControllerAnimated:YES completion:nil]; and - (IBAction)buttonPress:(id)sender { UIImagePickerController *imagePicker =[[UIImagePickerController alloc]init]; imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; imagePicker.delegate = self; [self presentViewController:imagePicker animated:YES completion:nil]; } 只是簡單的把圖片放到view1 上 我想要把選到的圖片 放到view2上 不知道要如何進行 我之前都是用core data 來擺放資料 可是圖片好像就行不通 請求貴人相助 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.224.201.131
sorkayi:看不懂 uiimage 不能傳嘛 轉 nsdata 傳? 11/30 00:35
tentenlee:應該是說 本來都是從第一個畫面送資料到第二個畫面 12/01 04:34
tentenlee:現在我在第二個畫面選擇好圖片之後 我要怎麼送回第一個 12/01 04:34
tentenlee:你的問題應該是這個吧?? 12/01 04:35
s8911124:把圖的路徑或傳圖過去= =a 12/02 15:42