모바일/아이폰

IOS 테이블뷰 투명색 적용이 되지 않을때

박황기 2014. 10. 5. 21:34

인터페이스 빌더에서 분명 테이블뷰와 셀뷰에 

clear color로 설정해서 투명색 처리를 했더라도

ios7에서 배경색이 흰색으로 나타난다.


이럴경우엔 코드상에서 배경색을 설정하면 투명색으로 설정이 된다.

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

하위에 

 [tableView setBackgroundColor:[UIColor clearColor]];

 [cell setBackgroundColor:[UIColor clearColor]];