uitabbar

How to prevent subview from overlapping tab bar?

不羁岁月 提交于 2020-01-03 17:10:27
问题 I have a view with tab bar at the bottom. This view is pushed on a navigation controller, so there is also a navigation bar at the top. Unto this view, I would like to show a table view, which I create from its own nib. When I add this view as a subview, it overlaps the tab bar. Is there a way to make this subview automatically resize to the free space in between the top and bottom bar? If not, what is the 'right' way of adjusting its size to fit? -Vegar 回答1: In the interface builder make

Tab Bar at the Bottom with MonoTouch.Dialog?

淺唱寂寞╮ 提交于 2020-01-02 08:29:32
问题 New to MonoTouch and MonoTouch.Dialog, but I'm sure it's possible to create a tab bar or button bar or what you want to call it - the black bar with icons/buttons at the bottom of the iPhone. Question is how to do it with MonoTouch.Dialog? Thanks for any help! 回答1: You don't do it with MT.Dialog. You would create a UITabBarController, and then assign a view controller to each of it's tabs. Each tab could point to a MT.Dialog DialogViewController, or any other type of ViewController. 回答2: Here

How to create translucent (with content behind it) UITabBar

我怕爱的太早我们不能终老 提交于 2020-01-02 08:24:26
问题 I have subclassed UITabBar and overriden drawRect: method to make it transparent (and make it look like I need to). Problem I am having is that the view added to UITabBarController does not cover whole screen but ends 49 pixels above bottom, so even tho I have transparent tabbar, I can't see thing behind it. Is there proper way how I can set size of UIView inside UITabBarController to cover entire screen? P.S.:I know it is not good idea to show content behind tabbar. I do not want to show any

Changing selected TabBarItem font iOS

陌路散爱 提交于 2020-01-02 02:20:15
问题 I have a TabBar. I am trying to style it so that the titles on the TabBarItems have different fonts for the normal state and the selected state. For normal state I want Helvetica Neue Light and for the selected state I want Helvetica Neue Medium. No matter what I do, I can't seem to get the fonts to be different for these two states. The color changing works fine. Here is what I currently have: // Set the tab bar title appearance for normal state. [[UITabBarItem appearance]

Custom UITabBar in Monotouch

一笑奈何 提交于 2020-01-01 19:50:51
问题 I am trying to create a custom UITabBar. I have the regular UITabBarController working fine, but optimally, I wish to get it looking like this: What is the best way to approach this? I can't seem to find any useful examples in Monotouch. Thanks 回答1: The way I figured to make a tab bar like that, is just a bunch of custom buttons that are arranged and programmed to look like a tab bar, but really they are just buttons. I was able to recreate the instagram tab bar in one of my apps and it looks

iOS 7 - Disable UITabBarItem tint color

为君一笑 提交于 2020-01-01 08:16:09
问题 I have a UITabBar with five icons, most of them being flat with just one color. However, one of these buttons should not have a tint color, since it's the company's logo and the logo has various different colors. I know it's possible to to so with UINavigationBar and UIToolbar (which is what I'm using and it's a horrible workaround). I did some heavy searching and tried many different solutions (I came up with with some crazy ones too), but none of them seem to work for me o iOS 7. Does

Autolayout ignores UITabBar (content under the bar) on iOS7

空扰寡人 提交于 2020-01-01 04:31:50
问题 I've set UITabBar as Opaque in Storyboard, but i still seems to be transulcent. When I set my custom UITabBarController with setBarStyle there is only OpaqueBlack availible. But that the least of the problem. No matter what I do, content of my view gets positioned under the tab bar, like it ignored by ayutolayout. On Storyboard everything looks fine. something messes up in the runtime? Oh the most important thing. The problem occurs on iOS7 only! Here are my ViewController settings in

Is possible to scroll an UITabBar?

你离开我真会死。 提交于 2019-12-31 07:24:10
问题 I've downloaded an Download Manager from App Store and noticed that the app scrolls an UITabBar,like: When the user press a button the bar walks left and show other option to the user.Is that really possible and does Apple accept these type of customization in UITabBar?If it's possible how can i do that,please provide some sample code or reference. 回答1: Yes, possible. but not using usual UITabbar . you have to create custom tabbar that behave the same. there are projects out there that you

Swift 3 - full width of UITabBarItem for selectionIndicatorImage

…衆ロ難τιáo~ 提交于 2019-12-31 07:15:07
问题 i have a UITabBar with three tabs. Now I want to assign or lets say to fill the complete width of one tab to the related selectionIndicatorImage cause currently I got a border if a tab is selected. Like the tab on the left side shows in the following screenshot: I made a subclass of UITabBar with a new property: var activeItemBackground:UIColor = UIColor.white { didSet { let numberOfItems = CGFloat((items!.count)) let tabBarItemSize = CGSize(width: frame.width / numberOfItems, height: frame

How to change UITabBarItem Badge position?

时光总嘲笑我的痴心妄想 提交于 2019-12-31 02:10:09
问题 This is how my Tabbar is looking right now. How do I move that badge so that it overlaps the top right of the bell icon? Any help is appreciated. 回答1: try this: func repositionBadge(tabIndex: Int){ for badgeView in self.tabBarController!.tabBar.subviews[tabIndex].subviews { if NSStringFromClass(badgeView.classForCoder) == "_UIBadgeView" { badgeView.layer.transform = CATransform3DIdentity badgeView.layer.transform = CATransform3DMakeTranslation(-17.0, 1.0, 1.0) } } } pay attention, tabIndex