So, Iβve been developing telephone conversations for a while and made a couple of apps in the app store. I made iphone and ipad applications and made them completely separate. I know that an apple allows you to send one application, which can be formatted for both devices. The question is, how is this done with telephone communications? I know that I can edit project settings and select ipad / iphone for the target device. But what should I do in my code to make it work correctly?
Since this is html, I control the size in html (and jquery). For example, in my iphone application, I might have:
<img src="asdf.jpg" width="480">
And then the same ipad application will be:
<img src="asdf.jpg" width="1024">
It would be really cool if I could just have two html files in my www folder, say index.html and index-ipad.html, and then they share the img, css and js shared folders. Is it possible?
I carefully scanned the documents by phone and found nothing. Can someone point me to a tutorial to do this? I really hate having multiple apps in the app store for the same content.
CHANGE IN COMMENTS BELOW
Perhaps I would not use the width attribute in html, perhaps I would do this:
<img src="asdf_ipad.jpg">
and
<img src="asdf_iphone.jpg">
where two images were calculated for two devices. In any case, I can handle html / js / css, I just need to know how to implement the βswitchβ so that the ipad is different from the iphone.
Landon
source share