小编cod*_*ock的帖子

以交互方式解除KeyBoard Bug

我的键盘被解雇有问题.每次我在键盘上向下滑动,我都有这个空白的黑色背景,我想摆脱它.我不明白为什么它在那里.这连接到我的tableView.

我的keyBoard

当我向下滑动时它看起来像什么

我将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)

ios swift

5
推荐指数
1
解决办法
683
查看次数

删除IQKeyboardManagerSwift上的完成栏

我是该图书馆的新手,希望迅速删除此“ 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)

ios swift

4
推荐指数
1
解决办法
1226
查看次数

Cell Swift中的UITextView

几个小时我一直在搞乱这些限制,无法解决这个问题.我需要在文本视图中使用动态单元格高度.

在此输入图像描述 在此输入图像描述

正如你可以看到它重叠我的时间戳.截至目前,我对时间戳有零(无)限制.我已经尝试了所有可能的组合来完成这项工作,我无法得到它.

也在使用

   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)

uitextview ios swift swift3

0
推荐指数
1
解决办法
1747
查看次数

标签 统计

ios ×3

swift ×3

swift3 ×1

uitextview ×1