tabbar

How to add a logout feature to an iPhone app?

谁都会走 提交于 2019-12-19 04:59:28
问题 I've an app with this layout: When you open the app you see a login screen. You log in and you see a tabbar with 3 tabs. (The loginview is displayed with a presentModalView in the appdelegate of tabbar). In the third tab there is a logout button. I want when logout button is pressed the app delete NSUserDefaults and shows the loginview again. And if you login again the login screen disappear and you see the first tab of the tabbar. How can I do this? 回答1: Do as follows, Place your login view

Check if tabBar is visible on iOS app

大城市里の小女人 提交于 2019-12-18 16:11:51
问题 I am working on an iOS App that have an UITabBarController for show a TabBar. In some where, I present a modalView full screen that hides the tabBar. I want to detect when my tabBar is visible for the user. There is any way to check automatically when de tabBar is visible or not? I tried that: But it really don't work because the tabBar is not really hidden. if ([[[appdelegate tabBarController] tabBar] isHidden]) { NSLog(@"tabBar IS HIDDEN"); } else { NSLog(@"tabBar IS VISIBLE"); } I write

Vertical Tab Bars? [closed]

a 夏天 提交于 2019-12-18 12:44:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I was wondering if anyone knows where I can find documentation or a tutorial on how to make a vertical tab bar for iOS like in 1Password or 2do. I figure that these aren't "real" tab bars, but I'd really like to use that functionality and I'm at a loss on how to accomplish it. Thanks in advance for any help! 回答1

How do I change the background of a UINavigationBar?

偶尔善良 提交于 2019-12-17 18:47:20
问题 I'd like to change the background of my UINavigationBar to a [UIColor colorWithImage:] , but it isn't working. What am I missing? EDIT: Once I've created my subclass, where do I set the UINavigationController to use it? 回答1: You can use the tintColor property to change the colour of a UINavigationBar , but to set an image as the background you'll have to provide your own UINavigationBar subclass and override the drawRect: method, for example: - (void)drawRect:(CGRect)rect { // Drawing code

Is it possible to hide the tabbar when a button is pressed to allow a full screen view of the content?

≯℡__Kan透↙ 提交于 2019-12-17 07:13:05
问题 I have a UITabBar in the detail view of my navigation based application. I am storing text and images in a tableview and would like the user to be able to tap on a cell to hide the navigation controller and the tabbar for full screen viewing of the content. I found this code for hiding the top bars, but it does not seem as easy to hide the tabbar. [[UIApplication sharedApplication] setStatusBarHidden:YES animated:YES]; [self.navigationController setNavigationBarHidden:YES animated:YES]; Does

Tab Bar disappears below the bottom of the screen

喜欢而已 提交于 2019-12-14 03:58:08
问题 In my application I'm using a Navigation Controller to push one view that loads a Tab Bar Controller and a custom Navigation Bar as well. The problem is that the Tab Bar disappears below the bottom of the screen, and I don't know what's causing the problem. If I load a simple Tab Bar in the next view, it positions itself correctly... but what I need is a Tab Bar Controller, and in that case the Tab Bar disappears below the bottom. I have tried changing the view and size properties of the Tab

How can I “reset” the tabbar in an iPhone application

爷,独闯天下 提交于 2019-12-14 03:41:15
问题 I've an iPhone application: When you open the app you see the "LoginView". If you login into application you see a TabBarController. In the third and last tab there is "Logout" button. If you click you see the "LoginView" again. My problem is that if you login again you see the "old" tabbar and the selected tab is the third and not the one, and there is a "Logout" button. Also, if a user login with a different user, see the old data of the previous user (very dangerous). Here's the code: -

Save data from one tab and reloadData in another tab

ぐ巨炮叔叔 提交于 2019-12-13 21:16:17
问题 My app is a tabBar app. In the first tab there is a tableview with some data; if the user touch a row, he sees some information and he can save that informations ad "favourite". in the second tab there is another tableview with the data saved as "favourite" by the users in the first tab. So... when the user save save as favourite some data, this is my code: -(IBAction)save{ NSString *saved = [NSString stringWithFormat:@"hello %@", my_variable]; //this is just an example :D [my_array addObject

dojo tabbar programatically created but not fixed at the right position

半世苍凉 提交于 2019-12-13 04:58:43
问题 i created a dojo tabbar programmatically and set the fixed:"bottom" attribute but the tabbar is created below the existing document and not fixed at the bottom of the window. After i have done a performeTransition to another view its fixed at bottom correctly. i did it like this: function createTabbar() { var tabBar = new dojox.mobile.TabBar({id:"tabContainer", barType : "tabBar", fixed: "bottom"}).placeAt(dijit.byId("mobileView")); var tabBarButtonNodes = new dojox.mobile.TabBarButton({label

Custom tab bar resizes when ever the other tab bar item is clicked

倾然丶 夕夏残阳落幕 提交于 2019-12-13 04:54:03
问题 This is my tab bar when ever I launch my simulator. But, when ever I click the other tab bar items, the other icons changes as shown below: I want my tab bar icons to look like the first picture even if I click other tab bar items. Need help! (I am new to IOS) 回答1: For custom tab bar images, you have to use a .pdf file with the dimensions of 25x25. You can read more about this on Apple's Documentation. 来源: https://stackoverflow.com/questions/48850741/custom-tab-bar-resizes-when-ever-the-other