Total Pageviews

Tuesday, April 8, 2014

ចង់ដាក់ Screen Orientation ទៅតាមណា?

System.orientation() គេប្រើសំរាប់ ត្រឡប់ String ដែលកំនត់ដោយ​ Orientation របស់ Device: Portrait / landscapeLeft /portraitUpSideDown/ landscapeRight / faceUp / facedown
ចំណាំះ សំរាប់ faceUp & facedown orientation មានតែលើ Ipad
Syntax: system.orientation

សូមមើលកូដះ

Print (“orientation: ” .. system.orientation)

No comments:

Post a Comment