I have a tab bar that can browse into sub screens.
Restart the tab bar item (first screen) when you select the tab item.
So basically when you select the first tab bar(see pic above) and select something from the tableview you are directed to the collection view (black screen). When you select the second tab bar item and go back to the first item in the tab bar, it continues where it left off (black screen).
How do i make it start over?
I've tried using this,
- (void) viewDidLoad{
[self.tabBarController addObserver:self forKeyPath:@"selectedViewController" options:NSKeyValueObservingOptionNew context:@"changedTabbarIndex"]; }
- (void) observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void
*)context{
[self viewDidAppear:YES]; }
But that only reloads the screen on the second click.