Skip to content
This repository

Incorrect selector used for _delegateFlags #8

Merged
merged 1 commit into from almost 2 years ago

2 participants

robiculous Matthias Tretter
robiculous

Delegate methods weren't being called.

Great project. Thanks!

Matthias Tretter
Owner

Ah, how dumb - forgot to convert them, thanks!

Matthias Tretter myell0w merged commit ed7c287 into from June 25, 2012
Matthias Tretter myell0w closed this June 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jun 21, 2012
Incorrect selector used for _delegateFlags. 7141fc2
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  NGTabBarController/NGTabBarController.m
4  NGTabBarController/NGTabBarController.m
@@ -207,8 +207,8 @@ - (void)setDelegate:(id<NGTabBarControllerDelegate>)delegate {
207 207
         _delegate = delegate;
208 208
         
209 209
         // update delegate flags
210  
-        _delegateFlags.shouldSelectViewController = [delegate respondsToSelector:@selector(verticalTabBarController:shouldSelectViewController:atIndex:)];
211  
-        _delegateFlags.didSelectViewController = [delegate respondsToSelector:@selector(verticalTabBarController:didSelectViewController:atIndex:)];
  210
+        _delegateFlags.shouldSelectViewController = [delegate respondsToSelector:@selector(tabBarController:shouldSelectViewController:atIndex:)];
  211
+        _delegateFlags.didSelectViewController = [delegate respondsToSelector:@selector(tabBarController:didSelectViewController:atIndex:)];
212 212
     }
213 213
 }
214 214
 
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.