+1
Є відповідь

Device specific attributes

doug 13 років тому оновлено icahill (Administrator) 13 років тому 1
Is it possible to set attributes that are specific to either the iPad or the iPhone? I ask this because I just finished the Constitution app tutorial (which was very informative) and it works great on the iPad.

However, when I try to view the app on my phone, the PDF can be viewed fine, but the "ypos" coordinates for the paginator slider "up" and "down" arrows place them off the screen. Is it possible to do what I asked above or would you recommend to use percentages instead of actual pixel coordinates in the future?
+1
We have a great method to build for both devices while still only using a single wire file.

We have a tag called <platform> where you can wrap device specific code labeled for each device in the same wire.

This would enable you to define your pieces that don't look right on the phone with separate blocks of code to accomodate for the screen size.