I have application in which i have create tab-bar dynamically. Now i want to add default items like contact, more, about, favorite etc. How i add all these item dynamically with Tab-Bar?
CGRect myTab =CGRectMake(0,368,320,49);
UITabBar *tabBar = [[UITabBar alloc] initWithFrame:myTab];
[self.view addSubview:tabBar];
Usually you would be creating a TabBar using a UITabBarController, in which case you can simply set the property
If you’re sure you wish to create a UITabBar then you want to use the items property. Something like this: