cocoa touch - New Images Can't Be Found in iPhone SDK -
i've been trying update image packaged app, app refuses load new file.
i had png called "board.png". created new file higher resolution copy of original. deleted "board.png" resources group in xcode , added new image under same name. when run app, old, smaller image still used.
then, cleaned build , tried again. still doesn't work. next, renamed new image "bigboard.png" , tried loading filename thusly:
uiimageview* board = [[uiimageview alloc] initwithimage:[uiimage imagenamed:@"bigboard.png"]];
but image not load @ though in resources folder. else have experience this? appreciated.
thanks!
i had same problem twice now.
first time had forgotten check 'copy items destination group's folder' option when added new image image want in folder when went build.
second time needed clean targets (build -> clean targets) before built again. gets rid of precompiled stuff , forces xcode recompile project. when did build results showed action copypngfile "path/to/image/image.png" think avoiding adding new image because saw precompiled version of there already.
see if either of fixes it.
Comments
Post a Comment