2011-12-14 7 views
0

アクティブにしたときにUISearchBarのグレーのフェードを無効にする可能性はありますか? 私はのviewDidLoadに次のようにしようと試みたし、何も働いていない:UISearchBarのフェーディングを無効にする

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

答えて

1

あなたはこのhelpful tutorialを参照し、ちょうどフェージングを担当して、次の部分を削除することができ、あなたの- (void) searchBarTextDidBeginEditing:(UISearchBar *)theSearchBar機能

で所望の動作をコーディングすることができます効果

[UIView beginAnimations:@"FadeIn" context:nil]; 
[UIView setAnimationDuration:0.5]; 
self.disableViewOverlay.alpha = 0.6; 
[UIView commitAnimations]; 
関連する問題