2013-08-06 3 views
-3

아래의 '또는'구분 기호는 어떻게 만들어 집니까? 섹션 헤더에 사용 된 이미지입니까? 그 정말 테이블보기로 이루어집니다 경우사용자 정의 IOS 구분자

enter image description here

+0

UITableView가 아닌 ​​일련의 UIButton과 UIView가 있다고 상상해 봅니다. "Or"구분 기호는 미리 만들어진 png 파일이있는 UIImageView입니다. – Fogmeister

+0

내 대답보기. 이것을 다시 만들려면 여러 대리자 메서드가 필요합니다. – dana0550

답변

0

예, 섹션 헤더에 사용되는 이미지입니다.

0

로그인 페이지가 UITableView의 머리글/바닥 글보기를 수정하고 있습니다.

테이블 뷰를 설정할 때 테이블 뷰의 각 섹션에 머리글 및 바닥 글 뷰를 만들려면 다음과 같은 UITableView 대리자 메서드를 사용해야합니다.

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section 
{ 
    // Set your custom view for the header in the section 
} 

- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section 
{ 
    // Set your custom view for the footer in the section 
} 

- (CGFloat) tableView:(UITableView*)tableView heightForHeaderInSection:(NSInteger)section 
{ 
    // Set the height of the header in each section 
} 

- (CGFloat) tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section 
{ 
    // Set the height of the footer in each section 
} 

참고 : 처음 두 가지 방법이있는 UIView를 반환 통지하는 경우 따라서 그냥 이미지 일 필요는 없습니다. 원하는 모든 사용자 정의보기를 작성하여 tableView 머리글/바닥 글에 배치 할 수 있습니다. 뷰는 UIKit 요소, UIImage 또는 CoreGraphics로 만들 수도 있습니다.