SlackTextViewController icon indicating copy to clipboard operation
SlackTextViewController copied to clipboard

Keyboard Doesn't Work With TabBarControl

Open electic opened this issue 8 years ago • 3 comments
trafficstars

Hi,

The sample project does not work when you add a tabbar control. I am on the master branch. I simply added a tab bar control to the sample project. The tab bar and control appears, but when I type in the input bar, nothing appears. I have the sample project, happy to upload it if it helps.

`- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

UITabBarController *tabBar = [[UITabBarController alloc] init];
[tabBar.tabBar setBackgroundColor:[UIColor whiteColor]];
[tabBar.tabBar setTintColor:[UIColor redColor]];
[tabBar.tabBar setTranslucent:NO];
tabBar.delegate = self;

UINavigationController *messageViewController = [[UINavigationController alloc] initWithRootViewController:[MessageViewController new]];

[tabBar setViewControllers:@[messageViewController]];


self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];

self.window.rootViewController = tabBar;
[self.window makeKeyAndVisible];

return YES;

} ` -R

electic avatar Feb 13 '17 02:02 electic

There is an example of how this library works with UITabBarController, on the sample project. image

Please provide your sample project for better understanding, if this is still an issue for you of course.

dzenbot avatar Mar 01 '17 07:03 dzenbot

I'm experiencing a similar bug when pushing with a the SlackTextViewController onto a navigation controller with a tab bar. Even when using hidesBottomBarWhenPushed on the VC.

This seems to go away if I forcibly load the SlackTextViewController's view by calling vc.view before pushing.

tmspzz avatar Aug 18 '17 15:08 tmspzz

Still seeing this issue!

mccode415 avatar Mar 11 '18 08:03 mccode415