- This topic has 4 replies, 3 voices, and was last updated 11 years, 3 months ago by decten76.
-
AuthorPosts
-
decten76MemberPls help with these
1- form already has background image, want to change new image when the newOrientation changes. pls give the code and indicate where to put them.
2- how to determine the size of device the app is running on, ie ip4 vs ip5 or Ipad … where to put the code in.
3- how to determine the current page of a multipage? say i m already in page1, a code “alert(phoneui.getCurrentPageId()) assigned to a button shows the root form id, not the current page of the multipage widget. I was thinking to place the code in phoneui.documentReadyHandler = function() {..} but got same result.
Many thanks.
Stu WadeMemberJust ran a couple of tests …
1) it appears that M1 webapps and native ios apps do not respond to change of orientation on iPhone 4 – they simply retain their default orientation. This is not the case with iPad.
2) window.screen.height and window.screen.width will give you the screen dimensions
decten76Memberhi,
“1) it appears that M1 webapps and native ios apps do not respond to change of orientation on iPhone 4 – they simply retain their default orientation. This is not the case with iPad.”
on my pc, the orientation works, it shows 0 as vertical, or -90 for horizontal. My concern is about how to change the image. not exactly about the orientation. Thanks.
” 2) window.screen.height and window.screen.width will give you the screen dimensions”. Thanks. I guess is at my end, the window.screen.width doesnt work. they width + height give same number! on my machine, the screen.availHeight does. Thank regardless.
support-octavioMemberHi decten76,
Please try using the snippet code I shared in this thread previously:
http://www.genuitec.com/support-genuitec/viewtopic.php?p=8467#p8467
decten76MemberHi Octavio,
It works, Thanks.
btw, how ab the item no 3?
and it is kinda urgent for me. wd u pls help?
I cannot gen IOS app, the p12 key gen from my mac for my ip5 works ok on my xcode project.
However, mobione always shows log that cannot extract p12 with password.
M stuck. can u pls have a look at it.
Thanks in a truck. -
AuthorPosts