viewWillDisappear: check an UIViewController disappear when push or pop from navigation stack

- (void)viewWillDisappear:(BOOL)animated { [super viewWillDisappear:animated]; if ((self.navigationController) && (![self.navigationController.viewControllers containsObject:self])) { NSLog(@"View controller was popped!"); } }

Advertisements

Separator of cell change with different thickness when scrolling

This is a problem with the separator of UITableView in applications, which not support iPhone 6/6 Plus resolution. Problem You have an application which works well on iPhone <= 5s. But on iPhone 6 or 6 Plus (device or simulator), the separators have a different thickness, and they change the thickness randomly when you scrolling … Continue reading Separator of cell change with different thickness when scrolling