如何在较新的iOS中隐藏工具栏? [英] How to hide Toolbar in newer iOS?

查看:63
本文介绍了如何在较新的iOS中隐藏工具栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将基于标签的应用程序的旧版本(ios6)升级到了最新的iOS.该应用程序使用我自己的customkeyboard,就像在所附图片中显示的一样.标签栏应该保留在键盘顶部,但是在新的iOS版本中,默认情况下会获得这个新的工具栏.因为它位于我的选项卡栏顶部,所以如何摆脱它呢?

I upgraded an older version(ios6) of a tabbed based app to latest iOS. The app uses my own customkeyboard like showing in the image attached. The tabbar supposed to stay on top of the keyboard, but with new iOS versions, I get this new toolbar by default. How do I get rid of this bar because it's sitting on top of my tabbar?

推荐答案

UITextInputAssistantItem* item = [textField inputAssistantItem];
item.leadingBarButtonGroups = @[];
item.trailingBarButtonGroups = @[];

这篇关于如何在较新的iOS中隐藏工具栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆