uitabbar

Unwanted line on tab bar on iPhone 6

妖精的绣舞 提交于 2019-12-11 11:23:37
问题 Under iOS 8.1 a 1px line is showing on my tab bar. This problem is only present on iPhone 6. Here's another post with the same problem. Here is a screenshot of my tab bar. I am using this code in Swift for my tab bar. tabBarController?.tabBar.backgroundImage = UIImage(named: "tabbar_shadow.png") tabBarController?.tabBar.backgroundColor = UIColor.clearColor() tabBarController?.tabBar.shadowImage = UIImage() tabBarController?.tabBar.translucent = true This is working fine but a 1px line is

Get callback/execute some code when a tab on Tab Bar is clicked

烈酒焚心 提交于 2019-12-11 10:57:51
问题 Alternatively, I could use something like viewWillAppear, only switching tabs doesn't call viewWillAppear - IF I can access selectedItem or selectedIndex reliably from there. The goal is to re-use a similar table view, with 3 tabs filling the table with differently filtered data. I tried overriding didSelect and using the app delegate as UITabBarDelegate, but got the error 'Changing the delegate of a tab bar managed by a tab bar controller is not allowed.' The tab bar controller, rootCt, is

UITabBarController Without a UITabBar

南楼画角 提交于 2019-12-11 07:47:14
问题 I'v been trying to hide/remove the UITabBar from a UITabBarController. I've got a UITabBar in my iPhone version but I've moved the navigation to a new view controller for the iPad version. The new menu works using the UITabBarDelegate methods to switch between the UIViewControllers. So far so good. All I need now is to somehow hide the UITabBar. I've got a custom UITabBarController and I've tried simply using self.tabBar.hidden = YES; but i need the view to fill the screen. Thank you 回答1: So

UITabbarController showing only first tab

烂漫一生 提交于 2019-12-11 07:36:36
问题 I manually added UITabbarController in storyboard which is not root view controller. I added tabbar items to it and set segue relationships. I also set image and title of each tabbar item in code when the first view controller of UITabbarController is about to be presented but no matter what I do only the first item's image is visible. Other items images become visible only when they are tapped and their views are actually loaded. Any inputs how to fix it ? - (void)prepareForSegue:

Unable to set action for UITabbarItem Programmatically

我的未来我决定 提交于 2019-12-11 06:32:46
问题 i need to set action for my UITabbar , As when i click my tabbaritem it should go to an action which i am having in another viewcontroller. but it is redirecting to UITableview here is my code - - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // create our table view controller that will display our store list FirstViewController *firstViewController =

Connect IASKAppSettingsView to tabbar item

不问归期 提交于 2019-12-11 05:36:37
问题 For a iPhone app I'm working on I want to use InAppSettingsKit to handle all the settings from within the app: http://www.inappsettingskit.com/ The sample app runs without problems but I'm not sure how to use it in my own app. There seems to be not documentation. I have a tabbar item called settings that should display the InAppSettingsKit. When I set the NIB name of the tabbar item to "IASKAppSettingsView" I only get errors. I've looked at the sample code but I can't find out how they

Remove TabBarItem highlight

梦想与她 提交于 2019-12-11 05:31:45
问题 I have a UITabBar based application, on one TabBar Button I have a navigation controller. When I move to navigation controller, tab bar highlight option needs to be removed. No tab bar buttons should be selected. How could I make this possible? 回答1: Try to take a look at the "Managing the Finished and Selected Image" task's section of the UITabBarItem docs. 回答2: If you want to change tabBar index then use [self.tabBarController setSelectedIndex:index]; of if you dont want to show selected

Custom background on UITabBarItem not set on second tap

做~自己de王妃 提交于 2019-12-11 05:09:37
问题 I have a custom tabbar with custom tabbar items. Everything works as I want it to, besides when a tap has been tapped and is in a selected state, it does not use my custom highlighted background if re-tapped. So far I set: UIButton *tap = [UIButton buttonWithType:UIButtonTypeCustom]; [tap setBackgroundImage:img forState:UIControlStateNormal]; [tap setBackgroundImage:[UIImage imageNamed:@"img_down"] forState:UIControlStateHighlighted]; [tap setBackgroundImage:[UIImage imageNamed:@"img_down"]

UITabBar on top or any other?

怎甘沉沦 提交于 2019-12-11 05:02:16
问题 I'm new to swift, going to create an UI in that a tabor is being shown in it , As i gone through the apple's human interface guidelines , they said not use UITabBar on top. We can use it by custom , but many of them said while submitting in App Store it will get rejected. So instead of UITabar what should use for the tab on top? 回答1: You should use a segmented control in the navigation bar, as in this example form the iOS Human Interface Guidelines: https://developer.apple.com/ios/human

Drawing your own tab bar?

泄露秘密 提交于 2019-12-11 04:59:45
问题 I want to customize my tab bar user interface some thing like this . (source: mactalk.com.au) So can anyone tell me how to prepare these types of ui layout or rendering ? Thanks , 回答1: To get this level of customisation, you're going to need to start from scratch and write your own control, there's no two ways about it. Apple don't provide any way to customise the UI of a tab bar, and if you were to modify Apple's tab bar beyond the expected user experience it currently provides, you'd be in