Skip to content

How can I canter RMUniversalActionSheet on iPad? #20

@PankajGaikar

Description

@PankajGaikar

So for my implementation is as below.

[self showActionSheetWithTitle:@"My View"
                       message:nil
             cancelButtonTitle:@"Cancel"
        destructiveButtonTitle:nil
             otherButtonTitles:@[@"A", @"B", @"C"]
popoverPresentationControllerBlock:^(RMPopoverPresentationController *popover){
    popover.sourceView = self.view;
popover.sourceRect = self.view.frame;
}
                      tapBlock:^(RMUniversalAlert * _Nonnull alert, NSInteger buttonIndex)
 {
        //Handling code goes here
 }];

Which I know absolutely wrong. So I want to ask you that is it possible to center RMUniversalActionSheet? If yes, what will be the values that I have to provide for popover.sourceView and popover.sourceRect?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions