普通键盘关闭方法我已经掌握了,即写个 textFieldShouldReturn 方法,然后按 return 键就行了。但是数字键盘却没有 return 键。通过网络检索,我发现有人说道重写个 touchesBegan 方法然后里面用 xxx.resignFirstResponder ()就行了。但是我试了还是不行啊。我怀疑要么是这个方法并不正确,要么是因为我的 xcode 爆出了“ Can't find keyplane that supports type 4 for keyboard iPhone-Portrait-NumberPad; using 1730230351_Portrait_iPhone-Simple-Pad_Default ”这个奇怪的错误导致的。
求教了。