Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No animation when selecting an image from the sidebar #34

Open
massdonati opened this issue Jul 7, 2014 · 1 comment
Open

No animation when selecting an image from the sidebar #34

massdonati opened this issue Jul 7, 2014 · 1 comment

Comments

@massdonati
Copy link

68747470733a2f2f7261772e6769746875622e636f6d2f726e797374726f6d2f524e46726f737465644d656e752f6d61737465722f696d616765732f636c69636b2e676966

I followed your steps:

-(RNFrostedSidebar *) sideBar {
  if (!_sideBar) {
    _indexSet = [NSMutableIndexSet indexSetWithIndex:1];
    _images = @[[UIImage imageNamed:@"fixing_tools"],
                [UIImage imageNamed:@"red_cross"],
                [UIImage imageNamed:@"settings"],
                ];
    _colors = @[[UIColor greenColor],
                [UIColor whiteColor],
                [UIColor yellowColor]
                ];
    _sideBar = [[RNFrostedSidebar alloc] initWithImages:_images selectedIndices:self.indexSet borderColors:_colors];
    _sideBar.delegate = self;
  }
  return _sideBar;
}
-(void)sidebar:(RNFrostedSidebar *)sidebar didTapItemAtIndex:(NSUInteger)index {
  [[[WFAppDelegate sharedDelegate] window] setRootViewController:[self.controllers objectAtIndex:index]];
}

-(void)sidebar:(RNFrostedSidebar *)sidebar didEnable:(BOOL)itemEnabled itemAtIndex:(NSUInteger)index  {

  if (itemEnabled) {
    [self.indexSet addIndex:index];
  }
  else {
    [self.indexSet removeIndex:index];
  }
}

But nothing happens.

@skull-squadron
Copy link

A similar setup is animating in a production dev env (iOS 7.1 + XCode 5.1.1)

Got all the right frameworks, esp. QuartzCore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants