![]() ![]() ![]() These are the functions of the AZTabBarDelegate: /// This function is called after `didMoveToTabAtIndex` is called. You can call it like this: currentTabBar?.setBadgeText("New Badge Value",atIndex: 2) tViewController(m圜hildViewController, atIndex: 0)Īdd actions: tAction(atIndex: 3) Let m圜hildViewController = ChildViewController() Let m圜hildViewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "ChildViewController")! Now initialize the controller object through the following method: tabController = AZTabBarController.insert(into: self, withTabIconNames: icons, andSelectedIconNames: selectedIcons)Īdd controllers: //if you are using storyboard: SelectedIcons.append("ic_settings_filled") ![]() SelectedIcons.append("ic_history_filled") The icons that will be displayed for each tab once they are selected. Usage:Ĭreate an array of String/UIImage: //The icons that will be displayed on the tabs that are not currently selected Simply drag and drop the Sources folder to your project. A custom tab bar controller for iOS written in Swift 3.0 Live Demo ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |