0
我創建文本框支持日語,英語
當我在打字的時候英語就OK 但是當我打字日本 的看法是前打字>向上移動並隱藏當前textfeild behide導航欄UITextFiled自動向上滾動鍵入日文
>>http://i.stack.imgur.com/PyiXB.png
打字>>>http://i.stack.imgur.com/JEoxA.png
這裏我的代碼後
titleLabel = [[UITextField alloc]
initWithFrame:CGRectMake((self.view.frame.size.width/2)-(self.view.frame.size.width/1.1)/2,
self.view.frame.size.height/6,
self.view.frame.size.width/1.1,
self.view.frame.size.height/10)];
titleLabel.autocorrectionType = UITextAutocorrectionTypeNo;
titleLabel.keyboardType = UIKeyboardTypeDefault;
titleLabel.returnKeyType = UIReturnKeyDone;
titleLabel.clearButtonMode = UITextFieldViewModeWhileEditing;
titleLabel.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
titleLabel.delegate = self;