Thursday, 19 September 2013

Views stacking over each other?

Views stacking over each other?

I'm currently using the ECSlidingViewControllersample and I'm having a
small bug while opening the same view I'm currently in.
For Example if I'm inside GudjonDaneil and I open the "drawer" and hit
GudjonDaniel again the viewDidLoad method calls twice, If I open it again
it calls the viewDidLoad 3 times in a row. It seems like the views are
stacking above each other. I need someway of killing the class(view) once
I open the view again.
Here's what happens once you click on the -UItableView
NSLog(@"Channel 1 Loading");
tableViewCellLoading = true;
[self.slidingViewController anchorTopViewOffScreenTo:ECRight
animations:nil onComplete:^{
CGRect frame =
self.slidingViewController.topViewController.view.frame;
self.slidingViewController.topViewController =
[self.storyboard
instantiateViewControllerWithIdentifier:@"firstChannel"];
self.slidingViewController.topViewController.view.frame = frame;
[self.slidingViewController resetTopView];
[tableView deselectRowAtIndexPath:indexPath animated:YES]; }];
How the drawer application looks like
http://gyazo.com/f811283fadbad5b50ee4d594b6798f18

No comments:

Post a Comment