1.[[NSBundle mainBundle]pathForResource:soundFileName ofType:@"mp3"]
文件應(yīng)該拖拽到supporting files中。
其實它在Build Phases -> Copy Bundle Resources
這里面需要包括storyboard,上面要引用的mp3贷痪,以及setting bundles
2.
1.[[NSBundle mainBundle]pathForResource:soundFileName ofType:@"mp3"]
文件應(yīng)該拖拽到supporting files中。
其實它在Build Phases -> Copy Bundle Resources
這里面需要包括storyboard,上面要引用的mp3贷痪,以及setting bundles
2.