You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.3 KiB

  1. //
  2. // FLEXKeyboardHelpViewController.m
  3. // FLEX
  4. //
  5. // Created by Ryan Olson on 9/19/15.
  6. // Copyright © 2015 f. All rights reserved.
  7. //
  8. #import "FLEXKeyboardHelpViewController.h"
  9. #import "FLEXKeyboardShortcutManager.h"
  10. @interface FLEXKeyboardHelpViewController ()
  11. @property (nonatomic, strong) UITextView *textView;
  12. @end
  13. @implementation FLEXKeyboardHelpViewController
  14. - (void)viewDidLoad
  15. {
  16. [super viewDidLoad];
  17. self.textView = [[UITextView alloc] initWithFrame:self.view.bounds];
  18. self.textView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
  19. [self.view addSubview:self.textView];
  20. #if TARGET_OS_SIMULATOR
  21. self.textView.text = [[FLEXKeyboardShortcutManager sharedManager] keyboardShortcutsDescription];
  22. #endif
  23. self.textView.backgroundColor = [UIColor blackColor];
  24. self.textView.textColor = [UIColor whiteColor];
  25. self.textView.font = [UIFont boldSystemFontOfSize:14.0];
  26. self.navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque;
  27. self.title = @"Simulator Shortcuts";
  28. self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(donePressed:)];
  29. }
  30. - (void)donePressed:(id)sender
  31. {
  32. [self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
  33. }
  34. @end