Ver código fonte

Guard usage of class only available in simulator builds

Ryan Olson 10 anos atrás
pai
commit
ebf5254629
1 arquivos alterados com 2 adições e 0 exclusões
  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];