SettingsController.m 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // SettingsController.m
  3. // g0blin
  4. //
  5. // Created by Sticktron on 2017-12-30.
  6. // Copyright © 2017 Sticktron. All rights reserved.
  7. //
  8. #import "SettingsController.h"
  9. @interface SettingsController ()
  10. @property (weak, nonatomic) IBOutlet UIButton *redditButton;
  11. @property (weak, nonatomic) IBOutlet UIButton *discordButton;
  12. @end
  13. @implementation SettingsController
  14. - (void)viewDidLoad {
  15. [super viewDidLoad];
  16. // Do any additional setup after loading the view.
  17. self.redditButton.layer.cornerRadius = 6;
  18. self.discordButton.layer.cornerRadius = 6;
  19. [self.reinstallBootstrapSwitch setOn:NO animated:NO];
  20. }
  21. - (IBAction)goReddit:(UIButton *)sender {
  22. NSURL *url = [NSURL URLWithString:@"http://reddit.com/r/jailbreak"];
  23. // [[UIApplication sharedApplication] openURL:url];
  24. [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
  25. }
  26. - (IBAction)goDiscord:(UIButton *)sender {
  27. NSURL *url = [NSURL URLWithString:@"http://discord.gg/RZqpUfR"];
  28. // [[UIApplication sharedApplication] openURL:url];
  29. [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
  30. }
  31. - (void)didReceiveMemoryWarning {
  32. [super didReceiveMemoryWarning];
  33. // Dispose of any resources that can be recreated.
  34. }
  35. /*
  36. #pragma mark - Navigation
  37. // In a storyboard-based application, you will often want to do a little preparation before navigation
  38. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  39. // Get the new view controller using [segue destinationViewController].
  40. // Pass the selected object to the new view controller.
  41. }
  42. */
  43. @end