文本输入框,类似于android 中的 editText,这其中有一个 问题,就是 输入完成后 ,输入法软键盘 不自动消失,要怎么来处理呢?
就是控制 该 控件放弃 第一响应者,类似于 android 中 editText 放弃焦点
ios :
[textFiled resignFirstResponser];
android :
InputMethodManager mInputMethodManager ;
mInputMethodManager = (InputMethodManager) this
.getSystemService(Context.INPUT_METHOD_SERVICE);
mInputMethodManager .hideSoftInputFromWindow(PhotoCommentActivity.this.getCurrentFocus().getWindowToken(),
InputMethodManager.HIDE_NOT_ALWAYS);
因为是新手,跟着教程走,关于 textfield 中的其他什么颜色,字体,字号等设置 不细谈,找了一篇文章,挺详细的,可以看下
http://my.oschina.net/u/1378445/blog/185943