Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

Code SnippetDelphiDemoFiremonkeyIOSOSXWindows

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

Delphi XE8 Firemonkey Controls Rotate In Place IOSDeveloper 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.


Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores


DelphiCon 2020 FireMonkey Sessions Available Starting November 19


Powerful Commercial Gorilla3D Framework Upgraded For Delphi FireMonkey On Windows And Android

Sign up for our Newsletter and
stay informed

Leave a Reply