I am trying to develop something like a play bar in Apple Music. The general view that appears at the bottom of all UITabbarContoller view controllers. Is there any idea or best practice to achieve this?
Ok i just put my personal decision
I don't like to embed a view controller in a tab bar controller. Just let me know if there is a better solution.
UITabBar UINavigationController, UIViewController s. , - UINavigationController. , UINavigationController.
UITabBar
UINavigationController
UIViewController
subview
[self.window addSubview:vw];
vw.tag = 10000;
segue , .
- (IBAction)YourButton:(id)sender { [self performSegueWithIdentifier:@"segueIdentifier" sender:self]; } -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if ([segue.identifier isEqualToString:@"segueSearchList"]) { // Do what you want to do } }
, ,
You have a ParentViewontroller class that has a tab at the bottom and inherits this class to view controllers that need a panel and handle things.
You can make xib for your view or a class inherited from UIView and add it to any controller you want.
Source: https://habr.com/ru/post/1629154/More articles:localize timestamp in pandas - pandasIn Vim, why is temporary normal mode (Ctrl-O from insert mode) executing commands much slower? - vimPhone call - callbackMP3 player, play button has no sound - javaAndroid function Html.fromHtml automatically converts unwanted text into hyperlinks - androidhow to stop and start a for loop - javaIterating over PHP class variables when using SplEnum - phpColored Icons in NavigationView - androidWhat does (unequal value value) mean in JavaScript? - javascriptorphanRemoval with PERSIST and MERGE cascade - hibernateAll Articles