Posts

Post not yet marked as solved
2 Replies
Is not via XCODE?XCODE->Product->Scheme->Edit Scheme->Run (left menu)->Options (Tab)->Application Language = "English" (I could setup to "Portuguese (Brazil)", but I intend to use the language English.XCODE->Product->Scheme->Edit Scheme->Run (left menu)->Options (Tab)->Application Region = "Brazil" (here I intend to use Brazillian's regional settings -> 1.200,43)
Post not yet marked as solved
6 Replies
I'm using Xcode Version 10.2.1 (10E1001) and the issue you faced looks like the same or similar to it.First of all, create a UITabBarController that comes with 2 UIViewControllers linked to it. Then, pick one of the UIViewControllers and go to "Editor->Embed in" to attach another UITabBarController between them, creating the second level of menus.Follow a screen showing how to reproduce the scenario: https://i.stack.imgur.com/CvCux.pngNote that, I attached the project in the last post.
Post not yet marked as solved
6 Replies
What did you embed?- I embedded each UIViewController with one UITaBarController (one for each one).Do you mean embed the first tabbarController?- No, I embedded in the UIViewController.But that is not possible (menu item is disabled when tabBarController is selected)So, what do you embed ?I embedded in the UIViewController.Please, see the mainstoryboard in a attempt to clarify the scenario and see for yourself a project I prepared as an example.Main Story Board - https://i.stack.imgur.com/HDbJz.pngProject Source Code Example - https://drive.google.com/file/d/1QTkQWkqO1ioFK-cOMJy9o4I0tbGyOEcZ/view?usp=sharingAnyway, that is not a good UI design, that wouyld be very uncommon and not easy to use (risk of tapping the wrong bar).You have at least 2 options:- use the more button in the tab bar to have more (and less frequently used items) on the right with a more button- create your own view, with all the buttons you need, arranged as you like, and connect each to the appropriate view controller.I already found a workaround that needs a lot of control/code in order to have what I need. This means that I create 4 UIViewControllers with one UITaBarController grouping them and create one tab bar inside of each UIViewControllers. So, I have the second tab bar appearing when users push a bar item of the first tab bar (first level at the bottom).But, I'm looking for the "best practice" with less code to control the desired behavior of the menus, etc. Do you think it is possible?I already thought about the mentioned options or similar to them, but I'm justing converting an android app that works very well with 1st level of menu fixed and the 2nd menu depending of the button of the first level menu pushed and I don't mind to modify it.Thanks for your help and I hope the scenario is more clear now. Let me know if is not.
Post not yet marked as solved
6 Replies
I've created 4 UIViewControllers and linked all of them to a common UITaBarController. You are right.Since I need 2 levels of tab bars, I tryed to "Embed In" 1 of the UIViewControllers with another UITaBarController ina attempt to achive my goal before applying to all UIViewControllers.The issue is that the 2 tab bars overlapped. https://i.stack.imgur.com/rr8Q6.pngMy intention is to have 2 levels of tab bars that are always appearing without hiding. https://i.stack.imgur.com/GML3V.pngPlease, let me know if you have any doubts.