1
vote
Locking screen rotation in FireMonkey iOS…
The Hacker's Corner
– Warning: This is a total hack, and should NOT be attempted unless you know exactly what you’re doing. I don’t know any better, so I just went for it. Editing shipping source files is NEVER supported, encouraged, and shouldn’t even be blogged about. OK, warning aside. Here we go… Locate FMX_Platform_iOS.pas on your Mac. Find this: function TUIViewController.shouldAutorotateToInterfaceOrientation( AinterfaceOrientation: UIInterfaceOrientation): Boolean; begin Result := True; { HINT! } end; Change it. Save it. Done! PS: Change it to what? Sorry. Not saying… PPS: ...
Statistics
|
Visits by Source |
User Actions |



