2016-05-04 10 views
-4

日付ピッカーテキストが目的cに表示されていません。日付ピッカーをスクロールしたときしかし、その後、例えば、ログテキストがUIDatepickerに表示されない

UIDatePicker * datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake (0.0, 44.0, 0.0, 0.0)]; 
[datePicker setBackgroundColor:[UIColor whiteColor]]; 
datePicker.datePickerMode = UIDatePickerModeDate; 
[Self.view addSubView:datePicker]; 

enter image description here

+0

コードが役に立つかもしれ表示... – Larme

+1

変更してみてくださいテキストカラーまたはバックグラウンドカラーをチェックして一度だけチェックします。 –

+0

UIDatePicker * datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0.0、44.0、0.0、0.0)]; [datePicker setBackgroundColor:[UIColor whiteColor]]; datePicker.datePickerMode = UIDatePickerModeDate; [Self.view addSubView:datePicker]; – vikramarkaios

答えて

1

に変更日付がテキストの色を変更し、一度

[datePicker setValue:[UIColor redColor] forKey:@"textColor"]; 
+0

私は、 –

関連する問題