I am trying to call and alert when a button is pressed. i use this :
-(IBAction)Add { UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @\"add bu
If you prefer your code to be cleaner and no dependency on delegate, you should try the blocks implementation of UIAlertView:
https://github.com/steipete/PSAlertView
Blocks are only supported on iOS 4+ devices though.