forked from ish-app/ish
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some links and some settings that don’t work
- Loading branch information
Showing
10 changed files
with
345 additions
and
36 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// AboutViewController.h | ||
// iSH | ||
// | ||
// Created by Theodore Dubois on 9/23/18. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface AboutViewController : UITableViewController | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// DismissSegue.h | ||
// iSH | ||
// | ||
// Created by Theodore Dubois on 9/23/18. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface DismissSegue : UIStoryboardSegue | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// DismissSegue.m | ||
// iSH | ||
// | ||
// Created by Theodore Dubois on 9/23/18. | ||
// | ||
|
||
#import "DismissSegue.h" | ||
|
||
@implementation DismissSegue | ||
|
||
- (void)perform { | ||
[self.sourceViewController.presentingViewController dismissViewControllerAnimated:YES completion:nil]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// UIApplication+OpenURL.h | ||
// iSH | ||
// | ||
// Created by Theodore Dubois on 9/23/18. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface UIApplication (OpenURL) | ||
|
||
+ (void)openURL:(NSString *)url; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// UIApplication+OpenURL.m | ||
// iSH | ||
// | ||
// Created by Theodore Dubois on 9/23/18. | ||
// | ||
|
||
#import "UIApplication+OpenURL.h" | ||
|
||
@implementation UIApplication (OpenURL) | ||
|
||
+ (void)openURL:(NSString *)url { | ||
[[self sharedApplication] openURL:[NSURL URLWithString:url] options:@{} completionHandler:nil]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
// | ||
// UIViewController+Back.m | ||
// UIViewController+Unwind.m | ||
// iSH | ||
// | ||
// Created by Theodore Dubois on 9/23/18. | ||
// | ||
|
||
#import "UIViewController+Back.h" | ||
|
||
@implementation UIViewController (Back) | ||
@implementation UIViewController (Unwind) | ||
|
||
- (IBAction)back:(UIStoryboardSegue *)segue { | ||
- (IBAction)unwind:(UIStoryboardSegue *)segue { | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters