My facing some serious problem.So I am explaining very specifically.
-
Two view Controller A) UITabbar Controller B) View controller containing scrollview of buttons.
-
I have subview B controller [blue button in the image] on the navigation bar of A controller [black button of the image in below of image].
Here is the code how can i did it
scrollButtonView = [[scrollViewButtons alloc] initWithNibName:@"scrollViewButtons" bundle:nil];
CGRect frame = CGRectMake(0, 20, 320, 43);
scrollButtonView.view.frame = frame;
scrollButtonView.view.userInteractionEnabled =YES;
[self.navigationController.view addSubview:scrollButtonView.view];
Now My problem is when i will click button of the controller B then tabbarbar selected index will change and that view controller will show in the screen.thats mean when I will click order button in the scrolled button at the top of the screen then it will show the order controller and tabbar item index will change and same as for the tabbar controller [A controller]
NOTE THAT:
Both A and B controller will contain same view button and same controller.I do not know how can do it? I want a answer with detailed manner.
SEE ALSO:
If it is not possible then tell me how can i add a scrolling menu bar of buttons add every controller of the tabbar controller and scrolling button will redirect the same controller like tabbar controller items?
Now, i hope i will get my solution.
Ha ha ha …..it was so much fun when i solved it.whatever i solved this problem in different way, i did not use scrollview button controller for controller just, in every controller i have made function to where buttons within a scrollview create and on action of button i have just change the selected index of the tabbar controller.
in
-(void)viewDidloadi wrote this codehere is the button create and action