Quellcode durchsuchen

Guard usage of class only available in simulator builds

Ryan Olson vor 10 Jahren
Ursprung
Commit
ebf5254629
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      Classes/Utility/FLEXKeyboardHelpViewController.m

+ 2 - 0
Classes/Utility/FLEXKeyboardHelpViewController.m

@@ -24,7 +24,9 @@
     self.textView = [[UITextView alloc] initWithFrame:self.view.bounds];
     self.textView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
     [self.view addSubview:self.textView];
+#if TARGET_OS_SIMULATOR
     self.textView.text = [[FLEXKeyboardShortcutManager sharedManager] keyboardShortcutsDescription];
+#endif
     self.textView.backgroundColor = [UIColor blackColor];
     self.textView.textColor = [UIColor whiteColor];
     self.textView.font = [UIFont boldSystemFontOfSize:14.0];