作者hg45hg2000 (lin chen)
看板MacDev
標題[問題] 請問要怎麼處理image檔
時間Fri Nov 29 23:08:10 2013
我在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
1F:→ sorkayi:看不懂 uiimage 不能傳嘛 轉 nsdata 傳? 11/30 00:35
2F:推 tentenlee:應該是說 本來都是從第一個畫面送資料到第二個畫面 12/01 04:34
3F:→ tentenlee:現在我在第二個畫面選擇好圖片之後 我要怎麼送回第一個 12/01 04:34
4F:→ tentenlee:你的問題應該是這個吧?? 12/01 04:35
5F:→ s8911124:把圖的路徑或傳圖過去= =a 12/02 15:42