Is there a way to programmatically show the root view controller in portrait mode, responsive to user action?
in my application, the root view controller can be updated by reacting to some interaction with the part controller, and I would like to pop it up when that happens.
Thanks!
If you want to open the root view control, use the UIPopOverController :
UIPopOverController
self.QuickSearchPopView = [[[QuickSearchPopView alloc] initWithNibName:@"QuickSearchPopView" bundle:[NSBundle mainBundle]] autorelease]; //create a popover controller self.popoverController = [[[UIPopoverController alloc] initWithContentViewController:self.QuickSearchPopView] autorelease]; //present the popover view non-modal with a //refrence to the button pressed within the current view [self.popoverController presentPopoverFromRect:self.view.frame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
Source: https://habr.com/ru/post/1314542/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1314537/c-desktop-applications-framework&usg=ALkJrhhR7jEMEQ2J8bnl9GFTC0-nE_Kf8ghow to display numpy array with pyglet? - pythonWhy Array.length does not work with key string - javascriptUnicode to form with Javascript - javascriptWhy am I getting HTTP 401 error using MGTwitterEngine? - objective-cHow to redirect a browser from a POST request to get a new location? servlet - redirectConfigure channel for WCF data services using Entity Framework (code first) - c #Are php5 function parameters passed as links or as copies? - parameter-passingCreate a new Drupal website using D7 - phpLINQ Group with two statements - c #All Articles