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

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 7, 2009, 06:35 AM   #1
chhoda
macrumors 6502
 
Join Date: Oct 2008
file and directory structure

Hi All,

I am needed to acess files inside a folder structure

Is there a way I can pre create the folder structure and put files in there ? I mean to say when my application runs the file and folder structure is ready. I dont want to programmatically to create folders.

for ex.. say I create files/images/a.png in xcode group. I wanna access image by files/images/a.png , can that be done and tested in xcode simulator ?

CH
chhoda is offline   0 Reply With Quote
Old Apr 7, 2009, 09:52 AM   #2
jnic
macrumors 6502a
 
Join Date: Oct 2008
Location: Cambridge
Not entirely sure I understand your question but I'll have a go.

If you have a directory structure on disk and you want to keep that structure in Xcode, just drag the folder in and make sure "Recursively create groups..." is selected.

To access images programmatically from Xcode, you can use:

Code:
UIIMage *yourImage = [UIImage imageNamed:@"a.png"];
which should work regardless of where in your project you've placed a.png.
jnic is offline   0 Reply With Quote
Old Apr 10, 2009, 05:24 AM   #3
chhoda
Thread Starter
macrumors 6502
 
Join Date: Oct 2008
thanks

aha thanks, but can i replicate this folder structure to iphone device without programming ?

ch
chhoda is offline   0 Reply With Quote

Reply
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
Old G4 with iTunes - file structure diane143 Mac Applications and Mac App Store 1 Feb 18, 2014 05:50 AM
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory xpmrz Mac Basics and Help 0 Dec 31, 2013 02:59 PM
Copying only a certain file type, retaining directory structure uncleMonty OS X 7 Mar 29, 2013 12:06 PM
-Bash No such file or directory os ck Mac Basics and Help 0 Jan 14, 2013 09:21 AM
Unknown file in home directory SisterRay OS X 10.8 Mountain Lion 9 Aug 31, 2012 12:34 PM

Forum Jump

All times are GMT -5. The time now is 05:44 PM.

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

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