??收起鍵盤 :?
在UIViewController中收起鍵盤, 除了調(diào)用相應(yīng)空間的resignFirstResponder方法外, 還有3種方法
1.重載UIViewController中的touchesBegin方法, 然后在里面執(zhí)行[self.view endEditing:YES]; ?這樣點(diǎn)擊UIViewController的任意地方, 就可以收起鍵盤
2.直接執(zhí)行[[UIApplication sharedApplication] sendAciton:@selector(resignFirstResponder) to: nil from: nil forEvent: nil]; 用于在獲取當(dāng)前UIViewController比較困難的時(shí)候用
3.直接執(zhí)行[[[UIApplication sharedApplication] keyWindow] endEditing:YES];
??設(shè)置應(yīng)用內(nèi)的系統(tǒng)控件語(yǔ)言
1.在UIWebView中長(zhǎng)按會(huì)彈出系統(tǒng)的上下文菜單娄昆。
2.在UIImagePickerController中會(huì)使用系統(tǒng)的照相機(jī)界面昙衅。
3.在編譯狀態(tài)下的UITableViewCell,處于待刪除狀態(tài)時(shí),會(huì)有一個(gè)系統(tǒng)的刪除按鈕爱态。
解決方案:
打開info.plist文件 添加如下內(nèi)容?
<key>CFBundleLocalizations</key>
<array>
? ? ? ? ? ? <string>zh_CN</string>
? ? ? ? ? ? <sting>en</string>
</array>