Page 1 of 1

[IOS] Terminate application

PostPosted: Mon Nov 26, 2018 5:24 am
by Lena
Hi.
How to force the application to close ios app?
Close();
Application->Terminate();
error not supported by the platform

On the forum for the delphi FMX:
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
  Halt(0);
end;

but in C++ Builder error: use of undeclared identifier 'Halt'

Re: [IOS] Terminate application

PostPosted: Mon Nov 26, 2018 2:41 pm
by rlebeau
Lena wrote:How to force the application to close ios app?


Closing the MainForm should suffice, just like on every other platform.

Lena wrote:On the forum for the delphi FMX:
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
  Halt(0);
end;

but in C++ Builder error: use of undeclared identifier 'Halt'


Halt() is only available to Delphi, not to C++.