[問題] 請問要怎麼處理image檔

看板MacDev作者 (lin chen)時間10年前 (2013/11/29 23:08), 編輯推噓1(104)
留言5則, 3人參與, 最新討論串1/1
我在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

11/30 00:35, , 1F
看不懂 uiimage 不能傳嘛 轉 nsdata 傳?
11/30 00:35, 1F

12/01 04:34, , 2F
應該是說 本來都是從第一個畫面送資料到第二個畫面
12/01 04:34, 2F

12/01 04:34, , 3F
現在我在第二個畫面選擇好圖片之後 我要怎麼送回第一個
12/01 04:34, 3F

12/01 04:35, , 4F
你的問題應該是這個吧??
12/01 04:35, 4F

12/02 15:42, , 5F
把圖的路徑或傳圖過去= =a
12/02 15:42, 5F
文章代碼(AID): #1IcAtS8m (MacDev)