Naming iOS Assets in Universal Apps
Stop following Apple's defaults and appending:
_iPhone
_iPad
to your project files. There are file name selectors that make this job effortless! Use the magical tilde instead, and each asset will only be used on the corresponding device. Like this:
~iPhone
~iPad
Written by Sam Green
Related protips
2 Responses
the all-lower-case "~ipad" and "~iphone" works for me.
over 1 year ago
·
the all-lower-case is the correct way to go, otherwise images are not loaded properly on some devices
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Xcode
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#