RDRStickyKeyboardView icon indicating copy to clipboard operation
RDRStickyKeyboardView copied to clipboard

Control doesn't work properly in a UITabBarController

Open markrickert opened this issue 10 years ago • 0 comments

I've initialized my collectionview inside a tab of a UITabBarController and set the RDRStickyKeyboardView's frame to end at the top of the tab bar by doing this:

(RubyMotion code below, but it makes no difference)

keyboardView = RDRStickyKeyboardView.alloc.initWithScrollView(collectionView)
keyboardView.frame = CGRectMake(0, 0, CGRectGetWidth(self.view.frame), CGRectGetHeight(self.view.frame) - self.tabBarController.tabBar.frame.size.height)
keyboardView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth
self.view.addSubview(keyboardView)

And I get the control as expected above the tab bar:

ios simulator screen shot may 30 2015 3 00 43 pm

However, when dismissing the control, it goes OVER TOP of the tab bar (out of its defined frame) as illustrated here:

2015-05-30 15_04_52

Any idea why this is happening and how i can make it look better on a UICollectionView contained within a UITabBarController?

markrickert avatar May 30 '15 19:05 markrickert