2013-06-15 2 views
1

LoginAndPasswordInput과 함께 UIAlertView를 사용하고 있습니다. [message setAlertViewStyle:UIAlertViewStyleLoginAndPasswordInput]; alertview 색상은 표준 파란색이지만 팝업 키보드는 검정색입니까? 키보드에서이 색을 어떻게 바꿀 수 있습니까?UIAlertView에서 키보드 색상을 변경하는 방법

답변

1

답변 : UIAlertView에 대한keyboardAppearance

블랙 키보드가 블랙 컬러로 UIKeyboardAppearanceAlert을 언급 한 바와 같이 애플에 의해 주어진 휴먼 인터페이스의 표준 규칙입니다.

왜 외관이 좋지 않다고 생각하십니까? 이와 블루에 키보드의 색상을 변경할 수 있습니다 그러나 :

mytextfield.keyboardAppearance = UIKeyboardAppearanceDefault; 
+0

AlertView이 파란색과 키보드가 검은 것을 그 이상한 때문에 ... – nonuma

+0

@nonuma : 사과 * 블랙 컬러와 함께'UIKeyboardAppearanceAlert'을 사용 * 왜이 경우 다음 있다면? – Bhavin

2

키보드 색상을보기는 UIAlertView과는 아무 상관이 없습니다. 키보드 색상의 색상을 변경하려면 2 가지 옵션이 있습니다.

푸른 색 바탕.

textfield.keyboardType = UIKeyboardAppearanceDefault; 

또는 검은 색 외관

.

textfield.keyboardType = UIKeyboardAppearanceAlert; 
관련 문제