-
[iPhone 프로그래밍] iOS5 에서 tableView:viewForHeaderInSection: 구현시 주의할점 !0x05 Programming/iPhone Programing 2011. 7. 22. 01:37
iOS5 로 업데이트 되면서 개발자 문서를 살펴본결과 다음과 같은 말이 쓰여있었습니다.
Returning
nil
from thetableView:viewForHeaderInSection:
method (or its footer equivalent) is no longer sufficient to hide a header. You must overridetableView:heightForHeaderInSection:
and return0.0
to hide a header.
위의 말을 해석해보자면tableView:viewForHeaderInSection: 함수에서 섹션을 감추기위해
nil 을 반환하는 것을 금지시킨것 같습니다.
반드시tableView:heightForHeaderInSection:
를 이용하여 return 0.0f 를 하여야 한다는군요
참고하시기바랍니다. ;)