Search code examples
rubymotion

Rubymotion organize resources in subfolders


When I use subfolders in ./resources directory I can't get access to them. What is the correct way to organise properly the resources?


Solution

  • Make sure you reference the subfolder in your code. If your image is ./resources/subfolder/imagename.png, do this:

    image = UIImage.imageNamed("subfolder/imagename")
    

    That works fine for me.