use new layout guide API to fix compass offset problem

This commit is contained in:
Justin R. Miller
2014-05-31 17:19:21 -07:00
parent 57465ff131
commit 5b3e8904de
2 changed files with 3 additions and 1 deletions

View File

@@ -42,6 +42,8 @@ llmr::Settings_NSUserDefaults *settings = nullptr;
self.mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
[self.view addSubview:self.mapView];
self.mapView.viewControllerForLayoutGuides = self;
settings = new llmr::Settings_NSUserDefaults();
[self restoreState:nil];