键盘大写与字符串大写

来源:互联网 发布:跨平台软件推荐 编辑:程序博客网 时间:2024/04/28 01:35

键盘:

cell.textField.autocapitalizationType = UITextAutocapitalizationTypeAllCharacters;

字符串

textField.text = [textField.text uppercaseStringWithLocale:[NSLocale currentLocale]];

0 0