I am doing an application which is of SingleView BASED Application,where i have many UIviewcontrollerclass subclasses for moving from one view to another view.i have a tab bar in one of the view and want to communicate with others view when click on a tab.so plz tell me how can i do it i am stuck here.
i have classes called
LoginPage.h/.m/.xib
Myservices.h/.m/.xib
History.h/.m/.xib
Profile.h/.m/.xib
MyRecentRequest.h/.m/.xib
when i enter from login page it moves to Myservices view.
There i have added Tab bar at the bottom and added two more tab Items and totally have 4 tab bar items naming Myservices,history,MyrecentRequest and profile.
Now i want to connect the tab bar with other class so that when i click on tab item respective view should appear of that particular classs so how can i do this? please provide me sample code.
first of all how u r maintaining the tabBar, either from IB or code. The below if by code. You need to alloc a tabBar with all the viewControllers required into each tabItem, the below one is sample with 2 tabItems:
In this way u can maintain the tabBar by code, so that if tab is selected respective view will be shown, in this example a navigation controller is used in each tab to provide navigation, if only 1 view is required u can avoid the navigation controller..