2011-12-14 4 views
0

활성화 될 때 UISearchBar의 회색 페이드 효과를 비활성화 할 수 있습니까? 는 내가있는 viewDidLoad에서 다음을 tryed 아무것도 일하지 :UISearchBar의 페이딩 비활성화

self.tableView.backgroundColor = [UIColor clearColor]; 
self.tableView.backgroundView.frame = [[UIView alloc] initWithFrame:CGRectZero]; 
self.tableView.backgroundView.backgroundColor = [UIColor clearColor]; 

답변

1

당신은 당신의 - (void) searchBarTextDidBeginEditing:(UISearchBar *)theSearchBar 기능에 원하는 동작을 코딩 할 수 있습니다

helpful tutorial을 참조 바로 페이딩을 담당하는 다음과 같은 부분을 제거 할 수 있습니다 효과

[UIView beginAnimations:@"FadeIn" context:nil]; 
[UIView setAnimationDuration:0.5]; 
self.disableViewOverlay.alpha = 0.6; 
[UIView commitAnimations];