Add UIPickerView & a Button in Action sheet - How?

后端 未结 11 1614
遥遥无期
遥遥无期 2020-11-22 15:40

My application requires following things to be added in an action sheet.

  • UIToolbar
  • Button on UIToolbar
  • UIPicker Control

I have

11条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 16:30

    For those guys who are tying to find the DatePickerDoneClick function... here is the simple code to dismiss the Action Sheet. Obviously aac should be an ivar (the one which goes in your implmentation .h file)

    
    - (void)DatePickerDoneClick:(id)sender{
        [aac dismissWithClickedButtonIndex:0 animated:YES];
    }

提交回复
热议问题