From: <D.D...@ak...> - 2011-04-01 08:11:24
|
<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi everybody,<br><br>I'm trying to implement a sort of progress dialog containing a spinning gear, to let users now that an action is being performed and they should wait. I'm trying to do it using the UIAlertView class and adding the UIActivityIndicatorView as a subview. However, I'm having problems setting the position of the UIActivityIndicatorView; exploring the UIAlertView class in AMAK I found out that the getFrame() method doesn't return the correct size of the dialog.<br>Apparently, what I need is the viewingArea variable of the UIAlertViewRenderer; however, I tried to retrieve that parameter by creating a getter but nothing happens. I even tried to insert the UIActivityIndicatorView directly in the doLayout() method and still nothing happens.<br>Could you suggest me the correct way of doing this?<br><br>Thank you,<br><br>Domenico De Fano<br> </div></font> |