我的键盘被解雇有问题.每次我在键盘上向下滑动,我都有这个空白的黑色背景,我想摆脱它.我不明白为什么它在那里.这连接到我的tableView.
我将tableView上的keyBoard设置为Dismiss Interactively
// KeyBoard (move text box above keyboard)
//KeyBoard - exit when the view is touched
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
self.view.endEditing(true)
}
// Start Editing The Text Field
func textFieldDidBeginEditing(_ messageTextField: UITextField) {
moveTextField(messageTextField, moveDistance: -215, up: true)
}
// Finish Editing The Text Field
func textFieldDidEndEditing(_ messageTextField: UITextField) {
moveTextField(messageTextField, moveDistance: -215, up: false)
}
// Hide the keyboard when the return key pressed
func textFieldShouldReturn(_ messageTextField: UITextField) -> Bool …Run Code Online (Sandbox Code Playgroud) 我是该图书馆的新手,希望迅速删除此“ Done”灰色栏。我该怎么做呢?其他输入将有很大帮助。
import UIKit
import Firebase
import IQKeyboardManagerSwift
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
//Configures all of Firebase
FIRApp.configure()
//Configure Key Board manager from Library (IQKEYboardManagerSwift)
IQKeyboardManager.sharedManager().enable = true
//Tab Bar Appearnece
UITabBar.appearance().barTintColor = UIColor.black
UITabBar.appearance().tintColor = UIColor.white
return true
}
Run Code Online (Sandbox Code Playgroud) 几个小时我一直在搞乱这些限制,无法解决这个问题.我需要在文本视图中使用动态单元格高度.
正如你可以看到它重叠我的时间戳.截至目前,我对时间戳有零(无)限制.我已经尝试了所有可能的组合来完成这项工作,我无法得到它.
也在使用
override func viewDidLoad() {
super.viewDidLoad()
//TableView Cell word wrap (Dynamic Text)
self.tableView.dataSource = self
self.tableView.delegate = self
self.tableView.estimatedRowHeight = 78
self.tableView.rowHeight = UITableViewAutomaticDimension
Run Code Online (Sandbox Code Playgroud)