Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old Apr 12, 2009, 03:05 PM   #1
macrumors 6502
Join Date: Oct 2008
files in device !

Hi All,

I am using this code

NSString *sndFilePath = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"mp3"];

for playing sound.

UIImage *img = [UIImage imageNamed:@"test.png"];

these work god in simulator

when i run on device, it does not find the file ! why ?

my image files are in resources/images section in xcode and sounds are in resources/sound/ group

chhoda is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iTunes device sidebar on right getting stuck when transferring files to iPod Mac32 OS X 0 Mar 16, 2014 07:06 AM
do I have to JB to access hidden files in iOS device? patent10021 iOS 7 7 Feb 9, 2014 12:27 PM
Importing .mov files to ios device 617arg iOS 7 6 Oct 9, 2013 06:18 AM
Device Tracker for iPhone & iPad ( Track and Locate your device on the Web ) Masood Hasny iPhone and iPod touch Apps 0 Mar 28, 2013 05:30 AM
Host files Edited: but still get "This device isnít eligible for the requested build" AndrewJay iPhone 2 Aug 27, 2012 11:18 AM

Forum Jump

All times are GMT -5. The time now is 04:44 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC