Note that there are some explanatory texts on larger screens.

plurals
  1. POAccessing Map View in another view controller
    primarykey
    data
    text
    <p>I'm working on a map based application where I'm using a side menu for control of the map (i.e. changing map type, etc). I'm using this library to implement the slide menu: <a href="https://github.com/mikefrederick/MFSideMenu" rel="nofollow">https://github.com/mikefrederick/MFSideMenu</a>. I'm wondering what the best way to control the map in one view controller from a different view controller?</p> <p>The App Delegate:</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:[NSBundle mainBundle]]; MFSideMenuContainerViewController *container = (MFSideMenuContainerViewController *)self.window.rootViewController; UINavigationController *navigationController = [storyboard instantiateViewControllerWithIdentifier:@"navigationController"]; UIViewController *leftSideMenuViewController = [storyboard instantiateViewControllerWithIdentifier:@"leftSideMenuViewController"]; [container setLeftMenuViewController:leftSideMenuViewController]; [container setCenterViewController:navigationController]; return YES; } </code></pre> <p>I then have this Action linked to a button on the primary view controller which shows reveals the side bar like so:</p> <pre><code>- (IBAction)leftReveal:(id)sender { [self.menuContainerViewController toggleLeftSideMenuCompletion:nil]; } </code></pre> <p>Heres a video that demonstrates the functionality of the side bar that I'm trying to emulate: <a href="http://www.youtube.com/watch?v=kbfu13fkWZ4" rel="nofollow">http://www.youtube.com/watch?v=kbfu13fkWZ4</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload