Created
June 2, 2011 07:02
-
-
Save icomkid/1004042 to your computer and use it in GitHub Desktop.
[iOS] Convert a bundle resource path to URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *resourcePath = [[NSBundle mainBundle] pathForResource:@"intro" ofType:@"mov"]; | |
NSURL *url = [NSURL fileURLWithPath:resourcePath]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
and where is tha file "@intro"??
I am trying to give path of an image selected from Photo Library (Simulator) and it is always nil
let URL = NSBundle.mainBundle().URLForResource("(localPath)", withExtension: "JPEG")