Vote UpVote

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: ...
Favorite? Off-Topic? Anders Ohlsson @ 2011-10-07 09:29


Visits: 934
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)