JDViewController.m 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. //
  2. // JDViewController.m
  3. // kneet2
  4. //
  5. // Created by Created by Jason Lee on 10/1/15.
  6. // Copyright (c) 2015 ntels. All rights reserved.
  7. //
  8. #import "JDViewController.h"
  9. #import "CustomTableView.h"
  10. @interface JDViewController () {
  11. //groups, invite from sms,
  12. }
  13. @end
  14. #pragma mark - Class Definition
  15. @implementation JDViewController
  16. - (void)viewDidLoad {
  17. [super viewDidLoad];
  18. // Do any additional setup after loading the view.
  19. [self initUIOnSuper];
  20. [self prepareViewDidLoadOnSuper];
  21. }
  22. - (void)initUIOnSuper {
  23. }
  24. - (void)prepareViewDidLoadOnSuper {
  25. }
  26. #pragma mark - Main Logic
  27. #pragma mark - UITableView DataSource & Delegate
  28. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  29. [tableView deselectRowAtIndexPath:indexPath animated:YES];
  30. }
  31. - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
  32. // Remove seperator inset
  33. if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
  34. [cell setSeparatorInset:UIEdgeInsetsZero];
  35. }
  36. // Prevent the cell from inheriting the Table View's margin settings
  37. if ([cell respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]) {
  38. [cell setPreservesSuperviewLayoutMargins:NO];
  39. }
  40. // Explictly set your cell's layout margins
  41. if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
  42. [cell setLayoutMargins:UIEdgeInsetsZero];
  43. }
  44. }
  45. #pragma mark - UI Events
  46. #pragma mark - MemoryWarning
  47. - (void)didReceiveMemoryWarning
  48. {
  49. [super didReceiveMemoryWarning];
  50. // Dispose of any resources that can be recreated.
  51. }
  52. @end