How do you remove the < > (next / previous) Done toolbar in Eureka forms?

社会主义新天地 提交于 2019-12-10 04:37:10

问题


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



来源:https://stackoverflow.com/questions/38662315/how-do-you-remove-the-next-previous-done-toolbar-in-eureka-forms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!