簡體   English   中英

在ios中從視圖右側顯示鍵盤

[英]Present keyboard from right of the view in ios

當用戶單擊文本字段時,我有一個帶有某些文本字段的視圖控制器,我需要從視圖ipad縱向屏幕的右側顯示鍵盤。可能在右側顯示鍵盤

如果要更改鍵盤的側面,則必須更改statusBar的側面。 例如:

[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
[[UIApplication sharedApplication]setStatusBarOrientation:UIInterfaceOrientationLandscapeLeft];
if([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0){
   [[UIDevice currentDevice] setValue:[NSNumber numberWithInteger:UIDeviceOrientationLandscapeRight] forKey:@"orientation"];
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM