I have a Tab Bar Controller in Storyboard, connected with 2 views. In View 2 (TimelineView) I had set in .h file:
@interface Timeline_Overview : UIViewController<UITabBarDelegate>{
}
@property (nonatomic, retain) IBOutlet UITabBarItem *PostImage;
And in .m file:
-(void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
{
NSLog(@"test");
if(item.tag==2)
{
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
UITabBarController *TimeLine = [mainStoryboard instantiateViewControllerWithIdentifier:@"Post_Photo_One"];
[self presentViewController:TimeLine animated:YES completion:nil];
}
else
{
//your code
}
}
but this void does not fire :(
Here is a pic from storyboard:
Can anybody help?
EDIT:
here is my inspection It looks like yours and it does not work :(
EDIT 2:
Here my Storyboard, I have set the Custom Class to my "Timeline_Overview" from the "Post Image" tab but it does not work :(