2014-04-10 1 views
1

크기가 1024 x 300 크기 인 사용자 정의보기를 작성했습니다. 배경에 선명한 색상을 지정하고 inputView to textView로 설정했습니다.IOS - 사용자 정의 입력보기에서 텍스트보기

view_datePicker = [[DatePickerView alloc]initWithFrame:CGRectMake(0, 0, 1024, 356)]; 
    view_datePicker.delegate = self; 
    view_datePicker.backgroundColor = [UIColor clearColor]; 
    self.txtView_scheduleDate.inputView = view_datePicker; 

정상적으로 작동하지만 배경색은 회색으로 유지됩니다.

다음은 스크린 샷입니다. enter image description here

입력보기의 배경색을 clearColor로 만들 수 있습니까?

감사합니다.

답변

0

사용 [self.txtView_scheduleDate.inputView setBackgroundColor : [UIColor clearColor]];

+0

안녕하세요, 작동하지 않습니다. – Durgaprasad

+0

DatePickerView는 사용자 지정 클래스입니까? – iDeveloper

+0

예. uiview의 서브 클래스입니다. – Durgaprasad

관련 문제