uitabbarcontroller

how to make UITabBar selection indicator image fill the whole space?

帅比萌擦擦* 提交于 2019-12-18 02:42:39
问题 I have a UITabBarController where I use this code to set selection indicator image: let selectedBG = UIImage(named:"tabbarbgtest.png")?.resizableImageWithCapInsets(UIEdgeInsetsMake(0, 0, 0, 0)) UITabBar.appearance().selectionIndicatorImage = selectedBG But the image does not fill the whole space - see image below: The image is just a red square with a solution on 82x49px, but with a wider image it still does not fill the whole space. Hope you guys can help - thanks. 回答1: If you want to set

How to hide parent tabbar when pushing controller in navigationController

廉价感情. 提交于 2019-12-17 22:45:48
问题 I have an application with a tab bar controller and each view contains a navigation controller. My MainWindow looks as follows: Image here http://www.freeimagehosting.net/image.php?7bc867a594.png Everything works fine as it is but I noticed a problem when pushing a details view to the navigation controller. In the didSelectRowAtIndexPath for a tableviewcontroller that belongs to the tab bar controller (the one called Latest in the image) I am doing this: - (void)tableView:(UITableView *

iOS 7 When Rotating View in Tab Bar, Right Side of View is Not Clickable

时间秒杀一切 提交于 2019-12-17 18:57:11
问题 I have a very simple app consisting of a single view. Everything works fine, the app rotates and buttons on the right side of the screen are clickable. I'm using iOS 7 and Xcode 5. If I go into the storyboard and select the view then do Editor > Embed In > Tab Bar Controller, now when the app rotates from portrait to landscape, the right side of the app is not clickable. It seems to be exactly 768 pixels from the left where it stops working, so it makes me think there's something in the app

Having a UITabBar AND a UINavigationController in an app?

狂风中的少年 提交于 2019-12-17 18:04:28
问题 Hey everyone, I am new to iPhone development and I'm not understanding the whole UINavigationController and UITabBarController idea. Is one a substitute for the other - how do apps such as Tweetie combine both? I'd like to have my app have a persistent Tab Bar @ the bottom (which seems to be working), but also a Navigation bar at the top which can push/pop views onto the screen without removing the tab bar. How can I accomplish this? What should the hierarchy look like in IB as far as my

tabBarController and navigationControllers in landscape mode, episode II

时间秒杀一切 提交于 2019-12-17 17:52:40
问题 I have a UITabBarController, and each tab handles a different UIViewController that pushes on the stack new controllers as needed. In two of these tabs I need, when a specific controller is reached, the ability to rotate the iPhone and visualize a view in landscape mode. After struggling a lot I have found that it is mandatory subclassing UITabBarController to override shouldAutorotateToInterfaceOrientation. However, if i simply return YES in the implementation, the following undesirable side

How to animate Tab bar tab switch with a CrossDissolve slide transition?

早过忘川 提交于 2019-12-17 17:36:26
问题 I'm trying to create a transition effect on a UITabBarController somewhat similar to the Facebook app. I managed to get a "scrolling effect" working on tab switch, but I can't seem to figure out how to cross dissolve (or it doesn't work at least). Here's my current code: import UIKit class ScrollingTabBarControllerDelegate: NSObject, UITabBarControllerDelegate { func tabBarController(_ tabBarController: UITabBarController, animationControllerForTransitionFrom fromVC: UIViewController, to toVC

UINavigation controller to UITabbarcontroller issue with SWRevealViewController in iOS Swift

我的未来我决定 提交于 2019-12-17 16:26:49
问题 In my project i have three tabBar item home, notification and profile. And side menu controller has home, bookings, profile and logout. Side bar menu controller was done by using SWRevealViewController cocopods. When i navigating side bar menu to home tab bar index was selected correctly and navigating properly. While navigating from bookings it navigates properly but again navigating home app gets crashed. And console output says Could not cast value of type 'UINavigationController'

tabbar item image and selectedImage

笑着哭i 提交于 2019-12-17 16:23:46
问题 I have a tab bar controller (its a tab bar based application, so tab bar is on MainWindow.xib). In this xib, I have added 4 tab bar items and I have set the image of all tab bar item. Due to this, I am facing 2 issues: 1) The image is white-colored, but when I run the application, its showing all the images on tab bar item as gray colored. How can I make it look same as is in the original image. 2) I have a selected image, that I want to add on the tab bar item which is currently selected.

iOS Tab Bar icons keep getting larger

让人想犯罪 __ 提交于 2019-12-17 15:49:10
问题 I am having a problem with my icons in my tabBar . Tapping the same tab bar button repeatedly will keep increasing the tab bar icon's size. If I push a different one, it goes back to its original size. Any ideas what I should fix? 回答1: As per the project shared by the OP ( see question comments ), it seems the tab bar image insets seem to be messing things up. Steps to resolve the issue: Select the tab bar item of the problematic ViewController s in IB Go to Size Inspector section ( on the

MPMoviewPlayerController fullscreen playback rotation with underlying UIViewController with portrait mode only (rotation disallowed)

元气小坏坏 提交于 2019-12-17 15:36:11
问题 Hallo, I have a simple application, which does contain UITabBarController with two UIViewControllers. Both UIViewControllers are portrait only (no rotation allowed). One UIViewController's UIView does contain MPMoviePlayerController's view to allow video playback inside this view with possibility to make it fullscreen via controls (MPMovieControlStyleEmbedded). The code is simple and does look like ... __moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:@