// // AboutViewController.m // iSH // // Created by Theodore Dubois on 9/23/18. // #import "UIApplication+OpenURL.h" #import "AboutViewController.h" @interface AboutViewController () @property (weak, nonatomic) IBOutlet UITableViewCell *sendFeedback; @property (weak, nonatomic) IBOutlet UITableViewCell *openGithub; @property (weak, nonatomic) IBOutlet UITableViewCell *openTwitter; @end @implementation AboutViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. } - (IBAction)openLink:(id)sender { } - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; if (cell == self.sendFeedback) { [UIApplication openURL:@"mailto:tblodt@icloud.com"]; } else if (cell == self.openGithub) { [UIApplication openURL:@"https://github.com/tbodt/ish"]; } else if (cell == self.openTwitter) { [UIApplication openURL:@"https://twitter.com/tblodt"]; } } @end