Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CSNotificationView/CSNotificationView.m
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ - (instancetype)initWithParentViewController:(UIViewController*)viewController
//Parent view
{
self.parentViewController = viewController;

NSAssert(!([self.parentViewController isKindOfClass:[UITableViewController class]] && !self.parentViewController.navigationController), @"Due to a bug in iOS 7.0.1|2|3 UITableViewController, CSNotificationView cannot present in UITableViewController without a parent UINavigationController");

if ([[[UIDevice currentDevice] systemVersion] floatValue] < 7.1) {
NSAssert(!([self.parentViewController isKindOfClass:[UITableViewController class]] && !self.parentViewController.navigationController), @"Due to a bug in iOS 7.0.1|2|3 UITableViewController, CSNotificationView cannot present in UITableViewController without a parent UINavigationController");
}
if (self.parentViewController.navigationController) {
self.parentNavigationController = self.parentViewController.navigationController;
}
Expand Down