mirror of
https://github.com/ish-app/ish.git
synced 2026-01-18 13:57:29 +00:00
41 lines
1.0 KiB
Objective-C
41 lines
1.0 KiB
Objective-C
//
|
|
// 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
|