liebus

Documents 에서 이미지 읽기 본문

예전꺼(2014년이전꺼)/iOS

Documents 에서 이미지 읽기

리베스 2011. 3. 31. 21:12

NSString  *strTemp = @"test.PNG";    // 이미지 이름

NSString *temp=[NSString stringWithFormat:@"%@/Documents/%@", NSHomeDirectory(), strTemp); 

//Documents에서 strTemp이미지의 위치 얻는다. 


UIImage *iiTemp = 
[UIImage imageWithContentsOfFile:temp]; 

// Documents에서 이미지를 읽어 올때는 imageName은 안먹더라
// 꼭  
 imageWithContentsOfFile:  로 땡겨 오길 바람 

'예전꺼(2014년이전꺼) > iOS' 카테고리의 다른 글

이메일 발송  (0) 2011.04.06
Xcode 4 Keyboard Shortcuts  (0) 2011.04.06
UIView 터치이벤트  (0) 2011.03.28
알림 창 - UIAlertView 만들기  (0) 2011.03.28
NSDate를 NSString으로 또는 반대 경우  (0) 2011.02.26
Comments