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

Tools/websites to test mobile push notification (APNS/GCM)

1. Knuff The debug application for Apple Push Notification Service (APNs). Features: Send push notifications to APNS (Apple Push Notification Service) very easily (no configuration needed at all) Load / Save documents including token and JSON payload Grabs the certificate right from your keychain Get the device token automatically; forget about manually retrieving the device … Continue reading Tools/websites to test mobile push notification (APNS/GCM)

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