본문 바로가기

UITableView

UITableView Cell Moving Control 보통 아래의 코드로 UITableView의 이동이 가능하도록 만들었다. 그렇지만 특정 Index에 접근을 할 수 없게는 만들수가 없다. - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.row >= [dataList count]) return NO; return YES; } 아래의 메소드를 활용하면 특정 index로 순서가 바뀌지 않도록 방지할 수 있다. - (NSIndexPath *)tableView:(UITableView *)tableView targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexP.. 더보기
[iOS] Status Bar를 눌러도 Scroll이 Top으로 이동하지 않을때... 기본적으로 UIScrollView의 scrollsToTop 속성이 YES로 설정이 되어 있다. 그래서 ScrollView와 TableView 등등 여러가지로 사용하는 있는 곳에서는 scrollsToTop 속성을 가진 UI가 많아서 동작을 하지 않는 것이다. 이럴 때는 하나만 YES로 설정하도록 해줘야 한다. 더보기
[IOS Library] SLExpandableTableView 펼쳐지는 TableView이다. 간단해서 이식하기 좋다. SLExpandableTableView SLExpandableTableView is a UITableView subclass that gives you easy access to expandable and collapsable sections by just implementing a few more delegate and dataSource protocols. 더보기
[iOS] UITableView HeaderView Frame Animation UITableView에서 HeaderView에 Frame 애니메이션을 적용하는 방법이다. [UIView animateWithDuration:FOLD_ANIMATION_DURATION animations:^{[self.headerView setFrame:rect];[self.tableView setTableHeaderView:self.headerView];}]; 더보기