Objective-c image loading problem. Problem is relative/absolut path -
i'm trying show image screen provider
provider = cgdataprovidercreatewithfilename(filename);
doesn't create correctly if give relative path of image:
all classes in project/classes/ , ball.png in project/
if write: "/volumes/sagitter/lavoro/progetti xcode/ivbricker test/ball.png"
i have http://img412.imageshack.us/i/schermata20110217a15482.png/
so provide correctly created.
if write "ball.png" have http://img43.imageshack.us/i/schermata20110217a15484.png/
how can solve? thank you
you need provide path image. include in application bundle , use nsbundle retrieve path.
Comments
Post a Comment