Permalink
Browse files

Inlined an assert message.

- should prevent a warning from showing up
  • Loading branch information...
1 parent 6c71533 commit 26c836b7a5ac2d8ba8ddaf60f2e9bbe3a351390c @matej committed Dec 10, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 MBPullDownController/MBPullDownController.m
View
4 MBPullDownController/MBPullDownController.m
@@ -242,8 +242,8 @@ - (void)changeFrontControllerFrom:(UIViewController *)current to:(UIViewControll
[self addChildViewController:new];
UIView *containerView = self.view;
UIView *newView = new.view;
- NSString *message = @"The front controller's view is not a UIScrollView subclass.";
- NSAssert(!newView || [newView isKindOfClass:[UIScrollView class]], message);
+ NSAssert(!newView || [newView isKindOfClass:[UIScrollView class]],
+ @"The front controller's view is not a UIScrollView subclass.");
if (newView) {
newView.frame = containerView.bounds;
[containerView addSubview:newView];

0 comments on commit 26c836b

Please sign in to comment.