robertwijas / UISS

UIAppearance Stylesheets
MIT License
1.23k stars 80 forks source link

How to use local paths in JSON file ? #38

Closed Mohamed3amer closed 10 years ago

Mohamed3amer commented 10 years ago

"UIButton": { "image" : "/Users/knetmac3/Library/Application Support/iPhone Simulator/7.0.3/Applications/49EEBD4A-2ADC-485C-9764-D58475792F7F/myfiles/image1.png" }

I want to do like this .. how i can ??

robertwijas commented 10 years ago

I think "myfiles/image1" should work.

Mohamed3amer commented 10 years ago

doesn't work !

robertwijas commented 10 years ago

Looks like this file is not a part of your application bundle. Currently UISS supports only resources bundled with application.

Mohamed3amer commented 10 years ago

Ok .. i wrote the image in the mainBundle not in the NSHomeDirectory .. this is working fine :+1: Thanks "UIButton": { "image" : "image1" }