Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

xiaohuli170

macrumors newbie
Original poster
Jan 13, 2009
27
0
I capture a image of webview that playing a flash. Because I want to show this image and use the IKSaveOptions to save the image .but I found the path of image is nil, Now I want to get the path of image , How to do ?
my code:
NSString *path = [[NSBundle mainBundle] pathForResource: ?? ofType:??];
NSURL *url = [NSURL fileURLWithPath: path];
then I use the url to show the image in the imageview,but Now I didn't get the path ,Thanks a lot!
 
pathForResource:eek:fType: returns the path of an image in the Resources folder within your application's bundle. Is this where your image is stored? If it's where you want it to be stored, make sure it's listed under the target's Copy Bundle Resources group in Xcode.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.