Skip to content

Commit

Permalink
Fix #17
Browse files Browse the repository at this point in the history
If no paging title is found then its default value will be the
controller's class name
  • Loading branch information
StefanLage committed Mar 13, 2015
1 parent c42eed5 commit 2c80754
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SLPagingView/SLPagingViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ -(void)addViewControllers:(UIViewController *) controller needToRefresh:(BOOL) r
else if(controller.navigationItem && controller.navigationItem.titleView){
v = controller.navigationItem.titleView;
}
else{
UILabel *item = [UILabel new];
[item setText:NSStringFromClass(controller.class)];
v = item;
}
// Adds a navigation item
[self addNavigationItem:v
tag:tag];
Expand Down

0 comments on commit 2c80754

Please sign in to comment.