[IOS / Object-C] - pushViewController, popViewControllerAnimated 닫기

IOS ( Object-C ) 2016. 10. 10. 11:27
반응형

pushViewController 로 열었는 activity 닫을때 popViewControllerAnimated


열기 : [self.navigationController pushViewController:activityViewList animated:YES];

닫기 : [self.navigationController popViewControllerAnimated:YES];

반응형
:

[IOS / Object-C] - Object-c NSMutableArray append in front ( addObjectsFromArray 반대 )

IOS ( Object-C ) 2016. 10. 7. 15:22
반응형

NSMutableArray *requestData;


[__tableData replaceObjectsInRange:NSMakeRange(0,0)

                      withObjectsFromArray:requestData];


__tableData 데이터의 앞쪽에 새로운 데이터 추가할경우 사용

반응형
:

[IOS / Object-C] - UITableView scroll bottom 스크롤 하단으로 보내기

IOS ( Object-C ) 2016. 10. 5. 13:48
반응형

NSInteger i = [__tableView numberOfSections] - 1;

  NSInteger lastRowIndex = [__tableView numberOfRowsInSection:i] - 1;

  NSIndexPath *indexPath = [NSIndexPath indexPathForRow:lastRowIndex inSection:i];

  

  [__tableView scrollToRowAtIndexPath:indexPath

                     atScrollPosition:UITableViewScrollPositionBottom

                             animated:YES];

반응형
: