开发者

iPhone - Chinese and Japanese in UITextField

开发者 https://www.devze.com 2022-12-13 06:13 出处:网络
I want to make sure some code I\'ve written works well with Chinese and Japanese characters. I tried changing the iPhone Simulator language to Chinese and Japanese, but it doe开发者_StackOverflow中文版

I want to make sure some code I've written works well with Chinese and Japanese characters. I tried changing the iPhone Simulator language to Chinese and Japanese, but it doe开发者_StackOverflow中文版sn't look like the character set for the UITextFields change. How do you do that?


I have come across the same (or similar) issue (chinese/japanese keyboards do not appear for UITextField even though they are enabled in settings whilst others, such as french, do appear).

Eventually I discovered that I had set the KeyboardType property to UIKeyboardTypeAlphabet. Commenting out this line caused the non-latin keyboards to show as expected.


Go to Settings > General > International > Keyboards to enable the Japanese keyboard.

0

精彩评论

暂无评论...
验证码 换一张
取 消