Vote UpVote

Opening a URL from an iOS FireMonkey application

The Hacker's Corner – Q: How do you open a URL in Safari on the iPhone using FireMonkey? A: You use UIApplication.sharedApplication.openUrl Below is a very simple unit that will do the code. Just create an iOS app with one button and add the following code to the unit. unit Unit1; {$IFDEF FPC} {$mode objfpc}{$H+} {$modeswitch objectivec1} {$ENDIF} interface uses SysUtils, Types, UITypes, Classes, Variants, FMX_Types, FMX_Controls, FMX_Forms, FMX_Dialogs {$IFDEF FPC} , iPhoneAll {$ENDIF} ; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private ...
Favorite? Off-Topic? Anders Ohlsson @ 2011-10-04 21:21


Visits: 492
Votes: 2
Favorites: 1
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)