問題描述
我的鍵盤默認值僅在我的應用程序中更改 (My keyboard default be change in only my App)
我不知道如何更改我在文本字段上輸入時的鍵盤默認設置,它更高且字母更大,我只是簡單地繪製並且沒有更改任何設置我拍攝了 2 張屏幕照片,一張來自我的應用程序,一張來自模擬器中的 safari 應用程序.
我的應用程序
Safari
參考解法
方法 1:
The two screenshots you have are showing the difference between a zoomed
and standard
iPhone display setting. You can switch between the two by going into the system settings app, going to the Display & Brightness
section, and looking for the Display Zoom
setting. Your safari screenshot appears to be taken with the standard
setting, whereas your app screenshot is taken using zoomed
.
方法 2:
Not getting your question exactly. If you want to customize keyboard appearance for particular textfield,
[myTextField setKeyboardAppearance:UIKeyboardAppearanceAlert];
if for whole app,
[[UITextField appearance] setKeyboardAppearance:UIKeyboardAppearanceAlert];
You can change appearance like,
UIKeyboardAppearanceDefault,
UIKeyboardAppearanceDark,
UIKeyboardAppearanceLight,
UIKeyboardAppearanceAlert
Update as ask in comment :
select your textField
from storyboard, from attribute inspector change keyboard type to default
and i am assuming you are not using any third party library for keyboard. and your status bar seems to right there is no difference i feel with other app's status bar.
hope this will help :)
(by momo、othomas、Ketan Parmar)