I’m using the following code to load some sounds depending on which button a user clicked. The file path is loaded into testString perfectly, but when NSLogging URLToBeReturned, it comes out as (null). I’m not sure why it’s not transferring over.
NSString *testString = [NSString stringWithString:[[NSBundle mainBundle] pathForResource:noteName ofType:@"m4a"]];
NSURL *URLToBeReturned = [NSURL URLWithString:testString];
return URLToBeReturned;
Instead of
use