Skip to content

Control doesn't work properly in a UITabBarController #24

Description

@markrickert

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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