V1.5 Actionsheet demo

Hi !

First of all, nice update of v1.5 !!!

When i try the actionsheet demo and select "Hello world" or "Delete",
the message ""Clicked on the Delete button" shows, but it seems like
the demo freezes then.

I can't click on "OK" to make the message dissapear.

Is this a bug ?

Cheers,

Paul


Hi, 


We are able to reproduce this here on the device and have already released an update (redownloading should fix the issue), yet it seems like an issue with the ShowMessage implementation, I think it blocks the main thread which is not a good idea.

the simulator does not have this issue. Can you perhaps try with the following code instead (iOSApi.UIKit and iOSApi.Foundation unit must be added)

procedure TForm1035.TMSFMXNativeUIActionSheet1DidDismissWithButtonIndex(
  Sender: TObject; AButtonIndex: Integer);
var
  str: String;
  av: UIAlertView;
begin
  str := 'Clicked on ' + TMSFMXNativeUIActionSheet1.ButtonTitleAtIndex(AButtonIndex) + ' button';
  av := TUIAlertView.Wrap(TUIAlertView.Wrap(TUIAlertView.OCClass.alloc).initWithTitle(NSSTR('Alert'), NSSTR(str), nil, NSSTR('OK'), nil));
  av.show;
  av.release;
end;

Kind Regards, 
Pieter

Pieter Scheldeman2013-07-10 10:53:55

Hi Pieter,

That works :)

Cheers,

Paul

Hi,

Update downloaded and checked.

Works nice now.

Cheers,

Paul