uitabbarcontroller

Managing view controllers in an app where sign up required

我是研究僧i 提交于 2019-12-08 04:53:18
问题 I want my iOS app to follow a navigation pattern similar to the one shown in Instagram: That is... if user hasn't signed in, a welcome view is displayed. From there, user can navigate to either the sign in view or the register view. When sign in is successfully completed, the view is dismissed sliding down, and then the main app view is shown below. If user logs out, the welcome view is shown again. My app is also a tabbed one. I've set the rootViewController in AppDelegate to be the

How are people popping their UINavigationController stacks under a UITabBarController?

我与影子孤独终老i 提交于 2019-12-08 03:29:40
问题 I have four UINavigationControllers assigned each to a tab in a UITabBarController. Each UINavigationController manages a UIViewController, which may itself branch out into other UIViewControllers below it hierarchally. My question is, in a case in which a user, under one tab, has navigated to a UIViewController that hierarchally BELOW the main UIViewController managed by the UINavigationController, and then the user pushes a different tab, and then goes back to the original tab, HOW can I

UISegmentedcontrol to switch views in UITabbarcontroller

落爺英雄遲暮 提交于 2019-12-08 02:54:14
问题 I am trying to switch between multiple different views using a UISegmentedControl . I found a really good example to do this in: http://redartisan.com/2010/6/27/uisegmented-control-view-switching-revisited However, I need to use a UITabbarController in my app. So the navigation controller is not available for me in the app delegate. Is there any other way to switch views in a UITabbarController using UISegmentedControl ? 回答1: First, consider whether you really want to do this.

How to set UITabBarItem widths evenly to take up all of Tab Bar

瘦欲@ 提交于 2019-12-08 02:29:40
问题 I would like the tab bar items in my app to evenly take up all of the tab bar whether in portrait or landscape. I have five tabs on my tab bar. The code below does not accomplish this. What am I doing wrong? I noticed that the screenSize.size.height actually references the width and I am not sure why that is. Any help is much appreciated. Thank you UITabBar *tabBar = self.tabBarController.tabBar; CGRect screenSize = [[UIScreen mainScreen] bounds]; float width; if (self.isShowingLandscapeView)

Issues with UIMoreNavigationController and UITabBarController

纵然是瞬间 提交于 2019-12-08 02:20:22
问题 This problem has been plaguing me for a little while, but I've think I've finally figured out what's wrong; I think I just need a solution now... Here's the background on the app. There are about 6 different tabs which the user can use, displayed using a UITabBarController. Each of these tabs is a custom UIViewController subclass, inside a UINavigationController. All 6 tabs are set up inside a nib file (MainWindows.xib). I need to be able to hide and show different tabs depending on if the

MoreNavigationController images disappearing on select

£可爱£侵袭症+ 提交于 2019-12-08 02:15:08
问题 I have a UITabBarController which has been created programatically, which has 6 tabs. As such the MoreNavigationController is automatically created to take care of having more than 5 tabs. Everything looks fine when the MoreNavigationController is displayed, but when I select one of these rows to push the view controller on to the stack, the cell image (tab bar image) disappears. When I pop that view controller, the image remains hidden until the pop animation is completed, at which point the

select tableview's row from an another view

久未见 提交于 2019-12-08 02:07:59
问题 I have made a TabViewController In that there is a view with a table and a view with an Image and some buttons. Now I want that when I press button one of the view one the row one from the another view should be selected. and when I press button two...row two from the another view should be selected .. can anyone tell me logically or with coding how to do this?? Thanks.. 回答1: If you have a refernce to the second view - use answer by @Praveen. If not, you can use Notifications, like this: In

Tab bar item icons appear darker

扶醉桌前 提交于 2019-12-07 19:47:59
问题 When setting the icons for the tab bar items it seems that the icons are appearing darker for some reason. Examples below Tab bar in app What it should be like from designs As you can see in the second example the colours are softer and lighter compared to the ones above i can't seem to figure out why because even in my image.xcassets the icons look like the ones in the design and in my setting in the identity inspector shown below there doesn't seem to be any settings for tints. Storyboard

Creating a UITabBarController using a NIB outside of AppDelegate?

走远了吗. 提交于 2019-12-07 17:37:12
问题 Still new to iOS programming, and despite copious amounts of research, I have run in to another roadblock. What I want to implement: I want a UITabBarController that gets loaded when I navigate from the main UI. I would also like to use a NIB to define its properties. All of the examples I can find put the UITabBarController in the AppDelegate, but I would not like to load it unless it gets used. I also dont know if all of the UIGestureRecognizers would remain active if I just did it modally

Tab Bar Item title before appear Storyboard

十年热恋 提交于 2019-12-07 16:45:41
问题 my app starts with a tab bar controller which have 5 tabs. At start the first one in presented with its name but the other four don't have a name until I click on them. Then the name appears depending which language the user has. How can I set the name of the tabs before the tab bar appears? I am using storyboard. Is there a way to set title at the tab bar programmatically when all the rest is done with storyboard? I tried in the AppDelegate something like [FirstViewController setTitle