oseparovic / MessageComposerView

Custom UIView that sticks to the keyboard like in iMessage
MIT License
100 stars 27 forks source link

UITabbarController containing UINavigationBarControllers #12

Closed Jenin closed 7 years ago

Jenin commented 9 years ago

I have an app that has a UITabbarController, and for the first tab I have a uinavigationController.

If I present modally a viewController that uses MessageComposerView it is working fine.

But the problem is If I push the view controller into the navigation controller! the accessoryView of MessageComposerView will remain under the tabbar (invisible).

oseparovic commented 9 years ago

I haven't found a more elegant solution to this (if one exists) but a simple workaround would be to use:

// init with provided frame and offset between composer and keyboard/bottom of screen
- (id)initWithFrame:(CGRect)frame andKeyboardOffset:(NSInteger)offset;

And specify the height of your Tabbar as your keyboard offset.