Q
如何自定義鍵盤
0
A
回答
0
+0
我試過這個演示,但我想添加按鈕右側不在空的地方。我也嘗試在此演示中添加按鈕右側,但它只是在9按鈕上方添加了新的按鈕。我不想要這個。怎麼做? – iKT
0
它非常簡單隻需創建一個的viewController用的.xib並獲得上述的畫面截圖。修復UIImageView的屏幕截圖然後你需要放置自定義的UIButtons並設置標籤屬性與按鈕意圖相同1,2,3然後創建一個方法分配給所有UIButtons並使用它們的標籤屬性執行操作。
如果你想在UITextField中輸入一些文本,那麼你需要實現UITextFiled textShouldBeginEditing的委託方法返回no。你有什麼想法?
-1
通過定製它們,您可以將簡單的按鈕添加到UIKeyBoard
。
- (void)keyboardDidShow:(NSNotification *)note {
// create custom button
UIButton *doneButton = [UIButton buttonWithType:UIButtonTypeCustom];
doneButton.frame = CGRectMake(215, 163, 106, 53);
doneButton.adjustsImageWhenHighlighted = NO;
[doneButton setImage:[UIImage imageNamed:@"DoneUp.png"] forState:UIControlStateNormal];
[doneButton setImage:[UIImage imageNamed:@"DoneDown.png"] forState:UIControlStateHighlighted];
[doneButton addTarget:self action:@selector(doneButton:) forControlEvents:UIControlEventTouchUpInside];
UIWindow* tempWindow;
UIView* keyboard;
for(int c = 0; c < [[[UIApplication sharedApplication] windows] count]; C++)
{
tempWindow = [[[UIApplication sharedApplication] windows] objectAtIndex:c];
for(int i = 0; i < [tempWindow.subviews count]; i++)
{
keyboard = [tempWindow.subviews objectAtIndex:i];
if([[keyboard description] hasPrefix:@"<UIPeripheralHostView"] == YES)
{
[keyboard addSubview:doneButton];
}
}
}
}
或檢查出此鏈接,自定義鍵盤佈局
0
我想你可以提供一個UIView
更換鍵盤......我從來沒有使用但此功能。
相關問題
- 1. 自定義鍵盤
- 2. 自定義鍵盤不顯示自定義鍵盤iOS 8
- 3. 如何在IOS中自定義鍵盤
- 4. Android - 如何顯示自定義鍵盤
- 5. 如何顯示自定義鍵盤
- 6. 如何創建自定義鍵盤
- 7. 如何顯示自定義鍵盤
- 8. 如何製作自定義鍵盤?
- 9. 自定義鍵盤:inputView:如何更改鍵盤大小?
- 10. 如何從自定義鍵盤切換到系統鍵盤?
- 11. 自定義Android鍵盤:如何創建輔助鍵盤
- 12. 如何在自定義鍵盤中播放鍵盤聲音?
- 13. xcode 4 - 自定義鍵盤
- 14. Android的自定義鍵盤
- 15. 自定義UISearchBar鍵盤
- 16. Android自定義鍵盤
- 17. 自定義鍵盤建議
- 18. ios自定義鍵盤
- 19. iOS的自定義鍵盤
- 20. Trigger.io和自定義鍵盤
- 21. 自定義安卓鍵盤
- 22. PhoneGap/Android自定義鍵盤
- 23. 自定義iphone鍵盤
- 24. Android自定義鍵盤?
- 25. 自定義鍵盤爲Android
- 26. 自定義iPhone鍵盤
- 27. 自定義鍵盤預想
- 28. 自定義數字鍵盤
- 29. iOS UITextField自定義鍵盤
- 30. iPhone自定義鍵盤
自定義鍵盤是一個很難的部分,因爲蘋果沒有提供太多的工作。我會建議一個黑客,每當需要顯示一個鍵盤顯示按鈕通過管理鍵盤通知的自定義視圖。並以編程方式隱藏原始的。我不知道這是可以接受的appstore.Have第一次也檢查 –