How do you remove the < > (next / previous) Don

2019-05-07 02:05发布

问题:

How do I remove the toolbar with " < > Done" on top of the keyboard when a Eureka form row is selected? I'd just like to have the regular keyboard. It isn't clear from the documentation how to do this. Also, what is this toolbar generally referred to as in the iOS documentation? Thank you.

回答1:

You must override the following method on your viewController

override func inputAccessoryViewForRow(row: BaseRow) -> UIView?

and simply return nil there something like this

override func inputAccessoryViewForRow(row: BaseRow) -> UIView? {
    return nil
}

Swift 3.0

thanks to @ T.Coutlakis

override func inputAccessoryView(for row: BaseRow) -> UIView? {
    return nil
}

this is the result

Hope this helps you