如何在 iPAD 上更改 ActionSheetDatePicker 来源

How to change ActionSheetDatePicker origin on iPAD

我在 table 视图单元格点击上打开 ActionSheetDatePicker 为:

[ActionSheetDatePicker showPickerWithTitle:@"Select Date"
                       datePickerMode:UIDatePickerModeDate
                       selectedDate:[NSDate date]
                           doneBlock:^(ActionSheetDatePicker *picker, id selectedDate, id origin) {                                                     dateString = [dateFormatter stringFromDate:selectedDate];
                                [self fetchHistoryForDate];
                                }
              cancelBlock:^(ActionSheetDatePicker *picker) {
                           NSLog(@"Block Picker Canceled");}
                                                origin:tableView];

但是在iPAD上显示是这样的。 我怎样才能改变它的方向?我正在使用 ActionSheetPicker-3.0

要解决此问题,请尝试像这样更改 origin 参数。

[ActionSheetDatePicker showPickerWithTitle:@"Select Date"
                       datePickerMode:UIDatePickerModeDate
                       selectedDate:[NSDate date]
                           doneBlock:^(ActionSheetDatePicker *picker, id selectedDate, id origin) {                                                     dateString = [dateFormatter stringFromDate:selectedDate];
                                [self fetchHistoryForDate];
                                }
              cancelBlock:^(ActionSheetDatePicker *picker) {
                           NSLog(@"Block Picker Canceled");}
                                                origin:tableView.tableFooterView];