iphone - Dismissing an Alert View in different method than what it is in -
iphone - Dismissing an Alert View in different method than what it is in - i have in app purchase in app , when purchase "purchasing", or in progress, have alert view come says "loading...". when purchase successful, restored, or failed, i'd phone call method releases alert view. problem is, can't seek release alert view in method because have no thought alert view talking , produce error. have no thought if best way of trying accomplish this, ideas appreciated. thanks! case stateispurchasing { //or whatever it's called uialertview *alert = [[uialertview alloc] message , delegate , button stuff here]; [alert show]; [alert release]; } declare uialertview in header retained property, synthesized, , released in dealloc . store alert view create in code snippet using pointer, , utilize declared pointer in other method. don't phone call [alert release]; when create alert view (unless exc_bad_access errors!). oh, if yo...