Awesome Control Rotation Trick Source Code For Delphi XE8 Firemonkey On IOS


Developer Yegor K. from JVEsoft has a post up where he shows how to rotate your controls in place on IOS in Delphi XE8 Firemonkey. Basically the standard way that you see in most apps is that the app has an orientation of either landscape or portrait and when you rotate the device the whole app rotates and fits into the new width of the screen. Yegor’s post is about changing this rotation model so that it does something different instead. The article shows how to change the orientation events so that the app orientation stays the same but individual controls rotate to the new orientation. It uses a slick animation for the rotation as well. You really have to check out the video to see how awesome this looks. In the context of certain applications (like games or apps for kids) this works really well. There is a sample project with source code also included. This only applies to IOS as it requires changing FMX.Platform.IOS.pas but you may be able to figure out how to do it on Android as well. The code and demo should also work with Appmethod.
Head over and check out the full tutorial on how to have your controls rotate in place when orientation changes on IOS in DElphi XE8 Firemonkey.

Comments are closed.