Unable to press some buttons on the toolbar while presented in page sheet
I've included ZSSRichTextEditor into an iOS app i'm working on. So, I happened to notice something interesting today. If a view controller subclassing ZSSRichTextView is modally presented in a page sheet (iPad) while the iPad is in landscape mode, some buttons on the toolbar are not usable. I tried changing the enabled buttons, but in the event there are more than 5 or 6, some buttons like text indentation and view source just don't work.
However, if you have the iPad in portrait and present using page sheet, then rotate to landscape, all the buttons still work.
No idea whats causing this.
It's easy to replicate with the existing source demo project, just replace ZSSDemoList.m:104 with this
ZSSDemoViewController *demo1 = [[ZSSDemoViewController alloc] init];
//[self.navigationController pushViewController:demo1 animated:YES];
demo1.modalPresentationStyle = UIModalPresentationPageSheet;
[self presentViewController:demo1 animated:YES completion:^{
}];
Just run it in landscape on the iPad simulator if you don't have an iPad.
I have seen issues like this on iPad and presenting as a page sheet. Will work on looking into the issue.
@Teknoman117 I will have a look into this.