2012-06-01 7 views
4

테이블 뷰에서 섹션을 이동하고 싶습니다. 나는 이것에 관한 어떤 문서도 찾지 못했다. 모든 문서 또는 샘플 코드가 도움이 될 것입니다. 감사테이블 뷰에서 섹션을 이동할 수 있습니까?

+0

당신이 섹션이 순서를 변경 의미합니까를 앱이 실행되는 동안 앱에 있거나 앱을 실제로 옮길 수 있습니까? – rdelmar

+1

@hpiOSCoder wwdc에서 하나의 비디오를 보았습니다.이 메서드를 사용하여 섹션을 실제로 움직일 수 있습니다. [self.tableView moveSection : 0 toSection : 2]; – ohmprakash

+0

채팅 룸 http://chat.stackoverflow.com/rooms/10882/ios-jail에서이 문제를 논의 할 수 있습니다. –

답변

1

당신은 jQuery과 클래스에 이러한 기능이 있습니다

– insertSections:withRowAnimation: 
– deleteSections:withRowAnimation: 
– moveSection:toSection: 

그들은 잘 공식 API 문서에 설명되어 있습니다 :

http://developer.apple.com/library/ios/#documentation/uikit/reference/UITableView_Class/Reference/Reference.html#//apple_ref/occ/instm/UITableView/moveSection:toSection :

+1

참고 : moveSection : toSection : 메소드는 iOS 5에서만 사용할 수 있습니다. – Felix

+0

docman 용입니다. – ohmprakash

관련 문제