iphone - Dismissing a UIAlertView -
iphone - Dismissing a UIAlertView -
i set in app purchase app, , when user taps button, purchase started. basically, tap button, , depending on speed on net connection, waiting 10 seconds until new alert view comes asking if purchase product. user tap button multiple times since nil came up, , multiple purchase alert views come up. additionally, maybe seen user app bug. in end, problem.
i want alert view come spinning wheel says "loading..." when users taps purchase button. problem is, how dismiss when new alert view comes asking user if want purchase product?
if ([uialertview alloc] says: @"whatever apple's alert view says") { //dismiss "loading..." alert view here } i uncertainty work, input appreciated. thanks!
you need have access alertview. can this. create alertview instance var in app delegate , when want show loading initialize instance var assign property , when want dismiss phone call
[alertviewinstance dismisswithclickedbuttonatindex:0]; write piece of code in method in appdelegate. hope idea. if not allow me know i'll post sample code here.
iphone ios uialertview alert dismiss
Comments
Post a Comment