Im having a tabbarcontroller with more than 5 tabs on it. I tried MS Teams like UI. But unable to present it as a small VC presenting on top of tabbarcontroller. I tried presenting views on tabbar item click but
Unable to fire the tabbar select event on first tap on the button
Unable to present over the currently selected view controller
Unable to present on top of tabbar controller(view hiding the tabbar)
#Microsoft Teams app
Please help me out to implement the same behaviour or comment if u know any library to perform this.
You should check Aiolos project on GitHub. It will allow you to show/interact with panels and you also be able to configure offset in Panel.Configuratio.magrins. Another way is to use custom transitions
Related
I have an UITabBarController which has 5 Tabs. So, my problem is, i want to make an welcome screen into the UITabBarController, but this screen should be just only one time visible, when the app started. After the screen appears and the user switch the Tabs, he can't go back to the welcome screen, otherwise he must quit the app and open it again.
I tried to make an UIViewController as an RootViewController, but he dont show me the UITabBarController instead.
Is there any way that i can solve this problem over the storyboard? Also with code it will be also okay.
If I did not misunderstand your question these ideas will help you;
Add an extra tab to your tabBarViewController , make it welcome view and make this view controller initial VC so user when landing to tabBarViewController this view will appear after few seconds change tab index selectedIndex as you desire from UITabBarViewController then hide welcome view button from tabBar.
Seond way : Inside UItabbarViewController create custom tabbarView (scrollable) you can use collectionView it's easy to implement and it cells selectable like buttons. Hide original tabbar make welcome view appears first, make its index sixth then change selectedIndex programmatically when you need and disable scrolling from collectionView with this way only your five buttons appears on screen and welcome view button automatically remain out of screen.
You can find example code in my Github repo UICWaveTabBar, UICSlideTabBar , UICExapandableTabBar
Fist link including .xib file, you can edit it from storyboard, second and third only code
So I'm working on a full screen tvos video application. No Tab bar, No Navigation Bar.
I've been trying to add Search functionality to this app.
I'm using a gesture during development to display the search feature.
I instantiate the results controller from my storyboard, then programmatically add that results ViewController to a UISearchController and then wrap that in a UISearchContainerViewController.
I then add that UISearchContainerViewController to my parent ViewController via: addChildViewController, set frame, view.addSubview, didMoveToParentViewController....
(per https://developer.apple.com/library/content/featuredarticles/ViewControllerPGforiPhoneOS/ImplementingaContainerViewController.html)
This successfully displays a functional search controller full screen over my now paused video.
BUT, when I try to dismiss the search ViewController it won't go away...........
I attempt to dismiss the UISearchContainerViewController via: willMoveToParentViewController(nil), view.removeFromSuperView() and removeFromParentViewController... The view does not disappear...
I've verified that the gestures are being called... and I've gone so far as to verify that the parents childViewController no longer contains the UISearchContainerViewController... but the Search interface remains??
I've simply hiding the UISearchContainerViewController for grins... it does not go away!?
I'm going to try a modal presentation as a fallback, but it's not the desired solution... and now I'm personally bugged as to why this doesn't work.
Any help will be greatly appreciated.
I am working on a tab bar application. Is there a way I can programmatically hide one view controller from the scroll down list and from the "edit" list (but still be able to pop it on screen with a certain action, i.e. by calling its tabbarcontroller index)?
The problem is that I have now so many viewcontrollers that completely fill the "edit" screen. So I want to hide some of them and be able to trigger the hidden ones trough some action performed on one of the visible ones.
Thanks
I would like to develop a ipad apps which has a menu at the top of the screen as well as at the bottom.
There are four buttons on the top of the screen, and there are 10+ buttons at the bottom tab bar, which can be scrolled horizontally.
How can I write the root view controller as a framework for this operation?
Should I customize the UIViewController class or UITabBarViewController?
Thanks
EDIT:
Sorry for being unclear. Let me restate my question.
Actually my app will have the following hierarchy.
'Front Page' is simply a page (view controller) for user to choose language. After choosing the language, 'Menu Page' view controller is displayed.
Starting from Menu page and ALL view controllers (VC) in below, the page layout is something like this.
As you can see, there are top menu and bottom menu. Clicking on the buttons the app will quickly jump to the corresponding view controller (3rd level in the tree, VC1,VC2,VC3 etc) . And for every view, there is a BACK button on every page, clicking which will back to the parent view controller.
I was thinking to implement this by using a tab bar view controller and a navigation view controller but I still do not have a clear idea how to implement this.
Or maybe should I just use the navigation view controller and hide the top tool bar except the back button, and display an overlay UIView as menu which is on top of all other UIViews.
Can somebody help me? Thanks.
Since this is the outermost container for my app I hope to do it properly at start..
Sorry for my long question.
If you really want to develop a framework for this logic .You need to create Manager, ViewController, View, DAO ,Model and other classes according to your needs.
I assume you want to add the buttons dynamically to the tabbar (and if it scrollable , it must be a scrollview).You can use Toolbar for upper view but then it won't be in sync with the bottom-view(visually).In that case you will have to create your own customized views to look like a tabbar.
The manager will basically keep a track of all the buttons and different states of events and action on the views and the same information can be accessed via a static method form the viewcontroller.
Well you have not detailed on your needs , so it's difficult to predict the entire architecture.
You need a container view controller to manage selection of VC's 1-4.
clicking which will back to the parent view controller
Parent view controller is used to mean the container vc in a container view controller scheme - I'm not sure that's what you mean in this comment. Where exactly does the back button go?
See this link for more info about container VC's.
https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/CreatingCustomContainerViewControllers/CreatingCustomContainerViewControllers.html
You should be able to embed a tab bar controller in the content view of the container VC. Should be able to but it might be really buggy if there is a lot of communication between the child vc's.
The hard part is the back button. Basically it must be a button that goes back to VC 1-4 depending on which section you are in. The easiest way to do it is to make sure that when you cycle view controllers, pass the back button information as to which VC is the current child so it knows which VC to navigate to when you press it.
I am developing an iPhone application using iPhone SDK 3.0. I need to use tabbar control along with navigation control. I also want to include a scrollview on the top of all views.Which contains a few number of buttons.These buttons are used to navigate to particular views. Tabbar contains 4 items. Total number views is about 8. So we can navigate to 4 of the views using tabbar as well as buttons on the top. The remaining 4 views can be accessed by using the buttons on the top only. I just created the tabbar and able to navigate to particular views using tabbar buttons as well as buttons on the top. But I couldnt able to navigate to other views, views that are not in tabbar controllers array. So please tell me how can I implement this feature?
Thanx in advance,
Syam S
iPhone Devr.
u want to navigate your remaining 4 view right? U can navigate that view using tabbar button also? when u creating an button on tabbar set the property [button setTag:Your number];
and when clicking on that button , at that check tag of sender and take a corresponding action.
let me know is this work or not?