Modal Dialog

I cant find any example of doing a modal dialog..I know that is is basically a loop of sorts.. They do it in DPF.. Is it hard to do?
Is the function available? Am I missing something?

The function is not available through TMS iCL, but you can easily use an UIAlertView by inserting the unit iOSApi.UIKit


procedure ShowMessageEx(AMessage: String);
var
  al: UIAlertView;
begin
  al := TUIAlertView.Wrap(TUIAlertView.Wrap(TUIAlertView.OCClass.alloc).initWithTitle(NSStrEx('Error'),
    NSStrEx(AMessage), nil, NSStrEx('OK'), nil));
  al.show;
  al.release;
end;