Have any one idea about this issue please share.. When I make universal app at that time if i have two image one for ipad and another for iphone like "Demo~iphone.png" and "Demo~ipad.png" In this if i just use "Demo" as image name then xcode manage it and make adjustment by default for ipad and iphone. So would this functionality can be use for landscape and portrait mode?I see this type of functionality in default lunch image like its name become "Default-Portrait~ipad.png" and "Default-Landscape~ipad" and xcode manage it, so is it possible by some way for other images in project?
Asked
Active
Viewed 526 times
2
-
2see my answer for this post http://stackoverflow.com/questions/11733279/what-is-the-proper-way-to-handle-image-rotations-for-iphone-ipad/11733834#11733834 it may helpful :) – Shamsudheen TK Jul 31 '12 at 11:52
-
yes it is good but i am searching idea as like we use for default launch image.We can see in it that its name mention like "Default-Portrait~ipad.png" and "Default-Landscape~ipad" and xcode manage it from it's side. – sinh99 Jul 31 '12 at 13:15
1 Answers
2
There is no default way the system would handle orientation by filename. You could implement some helper method to decide which files ought to be chosen for a given orientation, while your files correspond to a naming scheme you have defined.
[HelperClass imageNameWithTemplate:@"someImage-%@.png" forOrientation:orientation]
The helper method imageNameWithTemplate:forOrientation: then would decide which file to load and return.
You would implement this method for whenever the orientation has been changed.

ff10
- 3,046
- 1
- 32
- 55