Vote UpVote

Opening a URL in Safari on iOS

The Hacker's Corner – Consider this code. It works. And I was just about to answer a commenter with it… But my brain HURTS reading it, even more writing it, and much more recommending that someone else copies it… function SharedApplication: UIApplication; begin Result := TUIApplication.Wrap(TUIApplication.OCClass.sharedApplication); end; procedure TForm2.Button1Click(Sender: TObject); begin SharedApplication.openURL(TNSURL.Wrap(TNSURL.OCClass.URLWithString(NSSTR(PChar(String('http://www.embarcadero.com')))))); end; Luckily, David Clegg has blogged about his included sample code in XE4. Version ...
Favorite? Off-Topic? Anders Ohlsson @ 2013-05-01 22:45


Visits: 2013
Votes: 0
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)