Change UIActionSheet after doing it's job
Posted
by mongeta
on Stack Overflow
See other posts from Stack Overflow
or by mongeta
Published on 2010-03-22T07:58:35Z
Indexed on
2010/03/22
8:01 UTC
Read the original article
Hit count: 547
iphone
|uiactionsheet
Hello,
I have to import some XML data into my app.
Now I open a UIActionSheet and add as a subview a UIActivityIndicatorView. Initially I show a progress wheel and a button with 'Cancel'.
When the XML has been imported, I want to hide the progress wheel (this it's easy) and change the button into a 'Done' button, all in the same UIActionSheet.
What I'm doing now is closing the UIActionSheet with the option dismissWithClickedButtonIndex, but I don't like this way because it's the same as pressing 'Cancel', and then I show an UIAlertView displaying "All data has been imported".
Is this possible ?
thanks,
regards,
r.
© Stack Overflow or respective owner