liebus
Documents 에서 이미지 읽기
NSString *strTemp = @"test.PNG"; // 이미지 이름 NSString *temp=[NSString stringWithFormat:@"%@/Documents/%@", NSHomeDirectory(), strTemp); //Documents에서 strTemp이미지의 위치 얻는다. UIImage *iiTemp = [UIImage imageWithContentsOfFile:temp]; // Documents에서 이미지를 읽어 올때는 imageName은 안먹더라 // 꼭 imageWithContentsOfFile: 로 땡겨 오길 바람
예전꺼(2014년이전꺼)/iOS
2011. 3. 31. 21:12