Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show from a presented view controller #31

Closed
mathiasgithub opened this issue Sep 3, 2014 · 3 comments
Closed

Show from a presented view controller #31

mathiasgithub opened this issue Sep 3, 2014 · 3 comments
Labels

Comments

@mathiasgithub
Copy link

Thanks for a great control!

I'm not able to show the picker from a view that has been presented modally:

ProfileTableViewController *profileViewController = [[ProfileTableViewController alloc] initWithStyle:UITableViewStyleGrouped];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:profileViewController];

[self presentViewController:navigationController animated:YES completion:^{}];

After profileViewController is in the forefront of the screen, whenever I try to show an ActionSheetPicker, it shows itself behind the profileViewController view (that was presented modally with the code above).

This is how I show the ActionSheetPicker:

                ActionSheetDatePicker *datePicker = [[ActionSheetDatePicker alloc] initWithTitle:@"Select Date of Birth" datePickerMode:UIDatePickerModeDate selectedDate:[NSDate date] target:self action:@selector(dateWasSelected:element:) origin:[self.tableView cellForRowAtIndexPath:indexPath] cancelAction:@selector(datePickerCancelled)];
                [datePicker setCancelButton:[[UIBarButtonItem alloc] initWithTitle:@"Cancel"  style:UIBarButtonItemStylePlain target:self action:@selector(datePickerCancelled)]];

                [datePicker showActionSheetPicker];
@skywinder
Copy link
Owner

@mathiasppc Thanks for mention that! it will be fixed soon!
It caused by last update and pull request from #29
You can use v 1.1.8 for a while.

@mathiasgithub
Copy link
Author

Thanks again Petr! :)

2014-09-03 15:45 GMT+02:00 Petr Korolev [email protected]:

@mathiasppc https://github.com/mathiasppc Thanks for mention that! it
will be fixed soon!
It caused by last update and pull request from #29
#29
You can use v 1.1.8 for a while.


Reply to this email directly or view it on GitHub
#31 (comment)
.

@skywinder
Copy link
Owner

Fixed in #32 (v. 1.1.10)
Thanks to @serebryakov-av!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants