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

Control doesn't work properly in a UITabBarController #24

Open
markrickert opened this issue May 30, 2015 · 0 comments
Open

Control doesn't work properly in a UITabBarController #24

markrickert opened this issue May 30, 2015 · 0 comments

Comments

@markrickert
Copy link

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?

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

No branches or pull requests

1 participant