Skip to content

Commit d0a6bf3

Browse files
author
Tanguy Hélesbeux
committed
Merge pull request #10 from wiruzx/fix-callback
Fix callback calls
2 parents 05e4d06 + de6f378 commit d0a6bf3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

THTinderNavigationController/THTinderNavigationController.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ - (void)panGestureRecognizerHandle:(UIPanGestureRecognizer *)panGestureRecognize
242242

243243
- (void)callBackChangedPage {
244244
if (self.didChangedPageCompleted) {
245-
self.didChangedPageCompleted(self.currentPage, [[self.paggedViewControllers valueForKey:@"title"] objectAtIndex:self.currentPage]);
245+
UIViewController *currentViewController = self.paggedViewControllers[self.currentPage];
246+
self.didChangedPageCompleted(self.currentPage, currentViewController.title);
246247
}
247248
}
248249

0 commit comments

Comments
 (0)