當我想將文本放入我的UITextField時,鍵盤顯示在其頂部,並覆蓋該字段。如何防止這一點?我剛剛閱讀:this solution但我不知道在哪裏調整大小?這是一個好方法?鍵盤掩蓋了輸入字段
我的代碼是:
UITextField * passwordTextField = [[[UITextField alloc] init] autorelease];
passwordTextField.keyboardType = UIKeyboardTypeDefault;
passwordTextField.delegate = self;
passwordTextField.placeholder = NSLocalizedString(@"somestr", @"");
passwordTextField.secureTextEntry = YES;
[_controls setObject:passwordTextField forKey:keyPassword];
然後我展示它在Three20是:
[email protected]"",
[NSArray arrayWithObjects:
[TTTableControlItem itemWithCaption:nil control:passwordTextField],
nil],...
沒有必要重複問題標題中的問題標籤。 – yoozer8