Detecting button click with UIAlertView

后端 未结 6 1238
难免孤独
难免孤独 2021-01-01 12:10

I am trying to call and alert when a button is pressed. i use this :

-(IBAction)Add { 
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @\"add bu         


        
6条回答
  •  孤城傲影
    2021-01-01 12:35

    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.

提交回复
热议问题