uitabbar

Custom UIView covering UITabBar on iPhone but not iPad

半城伤御伤魂 提交于 2019-12-11 04:43:18
问题 I'm creating a custom uiView that covers the window. It acts kinda like a decoy uiview in a navigation controller. So I had to do it this way to cover the navigation bar.... long story... Here is how it gets setup. self.searchPopDown.frame = CGRectMake(0, 20, self.navigationController.view.frame.size.width, self.navigationController.view.frame.size.height-20); self.searchPopDown.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; The 20 is to compensate for

Add image on tabbar programmatically in iOS

谁说我不能喝 提交于 2019-12-11 04:40:43
问题 How to add images on tab bar programmatically in iOS (Xcode 4.2)? I already asked question but did not get a satisfied answer at Could not set tab bar image in Xcode 4.2 Programmatically. 回答1: Try the following code UITabBarItem *tabItem = [[[UITabBarItem tabBar] items] objectAtIndex:yourIndex]; [tabItem setTitle:@"theTitle"]; [tabItem setImage:[UIImage imageNamed:@"yourImage.png"]]; 回答2: iOS 5 Appearance api, UIImage* tabBarBackground = [UIImage imageNamed:@"tabbar.png"]; [[UITabBar

Change Default “Not Selected” UITabBarItem Image Color

霸气de小男生 提交于 2019-12-11 03:55:16
问题 how do we change the "Not Selected" or the unhiglighted state of the icons in UITabBarItem? I tried setting the UITabBarItem.appearance().setTitleTextAttributes(:) but it only changes the text color. Any idea? 回答1: If you want to change the default in iOS 7 and above, you have to actually use different icons (in the color you like to have for unselected tabs) and set the color of the text. Instead of creating two sets of icons, you could apply this tweak: // set the selected colors [self

Tab bar with slide out menu

99封情书 提交于 2019-12-11 03:37:41
问题 RearViewController.m -(IBAction)unwindFromViewController:(UIStoryboardSegue *)segue { if ([segue.identifier isEqualToString:@"unwindToViewController"]) { ViewController *detail = [self.storyboard instantiateViewControllerWithIdentifier:@"ViewController"]; [self presentViewController:detail animated:YES completion:nil]; } } If I click back from my RearViewController the ViewController is not presented instead it just peeps and goes off(again shows RearViewcontroller ). Image2 回答1: I give you a

“Default” view in UITabBarController

删除回忆录丶 提交于 2019-12-11 02:41:17
问题 I have a UITabBarController with 5 NavigationControllers, embedded in it as tabs (similar to picture 1 below). So, the question is: I want to show the table view (or any another view) as a "default" view, when the TabBarController is shown. I.e., show the view (view controller), which is not embedded in TabBarController and make any tab selected. I apologize for such explanation, better watch on picture #2 below. I'm using latest version of XCode and Swift in my project. And for interface I'm

shopkick application UI widgets

故事扮演 提交于 2019-12-11 02:37:11
问题 Please see the link below. http://itunes.apple.com/app/id383298204?mt=8 There are screen shots of showpick application. In that there is a collect button which is some what impossible to implement under ui tab bar. Can someone help me to figure it out how they have implemented it? Is that an actual UITabBar? Thank you 回答1: I figured out a workaround. I basically add a dummy controller for the middle entry of the UITabBarController. And in viewDidLoad I add a button to the UITabBar like so:

issue with ios7 tabbar controller

空扰寡人 提交于 2019-12-11 01:59:14
问题 hi i am migrating my app from ios 6.1 to 7, the app contains a tabbar controller, works perfectly fine on ios6, but when i run this on ios 7, 4 among the 5 tabbar items dont show the selected image, its being pretty weird as one is showing correctly while the others are not, am using storyboard, am not able to use "imageWithRenderingMode:" as i am still doing this on xcode 4.6, so i would like to rectify it in xcode 4.6 only and be able to run it on ios7, the code for the tabbarcontroller is

Badge value on “More” tab

懵懂的女人 提交于 2019-12-10 23:55:36
问题 I am making an iOS app which has a tabBarController, with more than 5 tabs. Thus, first four are directly clickable and the rest come under MORE tab. I want to show a badge on the MORE tab if there is any badge for the tabs that are hidden inside this MORE tab. I know about how to do that from this question. But the order of my tabs is configurable. Is there a way I can configure the MORE tab such it just puts the badgeValue if I set a value for a tab inside it? I am thinking of this: - (void

Remove UITabBar horizontal separator in iOS7

不羁的心 提交于 2019-12-10 21:28:12
问题 I want to remove the horizontal separator line between a UITabBar and the rest of the screen. I'm asking the same question as this guy but updated for iOS7. Setting the background image of my UITabBar doesn't alleviate the problem, nor does setting the background image of the [UITabBar appearance] object. Is this still possible in iOS7? If so, how? 回答1: The answer to this is pretty much the same as removing the separator of a navigation bar or a toolbar. Officially, this is only possible by

iOS7 tab bar custom icon height - height reduces until icon gets invisible

自闭症网瘾萝莉.ら 提交于 2019-12-10 19:18:27
问题 I implemented tab bar with custom icon sizes to match the design: The first and the last icon sizes are reduced to fit below the circle line by setting the bar item sizes as follows: The strange behaviour that happens only on iOS7+ is that when the user taps already active resized tab bar icon for the second time - it gets reduced in size: And if I tap on it again - it's size is so small that it appears invisible: This doesn't happen on iOS5 or iOS6. Is there something that I'm doing wrong