diff --git a/OpenWatch/OWSettingsViewController.m b/OpenWatch/OWSettingsViewController.m index e5d9d1f..52a7979 100644 --- a/OpenWatch/OWSettingsViewController.m +++ b/OpenWatch/OWSettingsViewController.m @@ -12,6 +12,9 @@ #import "OWRecordingListViewController.h" #import "OWUtilities.h" +#define ACCOUNT_ROW 0 +#define FEEDBACK_ROW 1 + @interface OWSettingsViewController () @end @@ -31,7 +34,8 @@ - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. - [self addCellInfoWithSection:0 row:0 labelText:ACCOUNT_STRING cellType:kCellTypeNone userInputView:nil]; + [self addCellInfoWithSection:0 row:ACCOUNT_ROW labelText:ACCOUNT_STRING cellType:kCellTypeNone userInputView:nil]; + [self addCellInfoWithSection:0 row:FEEDBACK_ROW labelText:SEND_FEEDBACK_STRING cellType:kCellTypeNone userInputView:nil]; } - (void)didReceiveMemoryWarning @@ -46,11 +50,13 @@ - (void) viewWillAppear:(BOOL)animated { } - (void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { - if (indexPath.row == 0) { + if (indexPath.row == ACCOUNT_ROW) { OWLoginViewController *loginView = [[OWLoginViewController alloc] init]; UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:loginView]; navController.navigationBar.tintColor = [OWUtilities navigationBarColor]; [self presentViewController:navController animated:YES completion:nil]; + } else if (indexPath.row == FEEDBACK_ROW) { + [TestFlight openFeedbackView]; } [tableView deselectRowAtIndexPath:indexPath animated:YES]; } diff --git a/OpenWatch/OWStrings.h b/OpenWatch/OWStrings.h index deb248f..7870bf9 100644 --- a/OpenWatch/OWStrings.h +++ b/OpenWatch/OWStrings.h @@ -55,6 +55,7 @@ #define SAVED_STRING NSLocalizedString(@"Saved", @"Title for saved recordings") #define WELCOME_STRING NSLocalizedString(@"Welcome!", @"title for welcome screen") #define STOP_RECORDING_STRING NSLocalizedString(@"Stop Recording?", @"Question whether user wants to actually stop recording") +#define SEND_FEEDBACK_STRING NSLocalizedString(@"Send Feedback", @"help us improve the app") #define WELCOME_TEXTVIEW_STRING NSLocalizedString(@"Welcome, new Watcher!\n\ \n\ Thanks for installing OpenWatch!\n\ diff --git a/OpenWatch/OWWatchViewController.m b/OpenWatch/OWWatchViewController.m index e7bbf1f..b85dfa2 100644 --- a/OpenWatch/OWWatchViewController.m +++ b/OpenWatch/OWWatchViewController.m @@ -9,7 +9,6 @@ #import "OWWatchViewController.h" #import "OWAccountAPIClient.h" #import "OWRecordingTag.h" -#import "OWRemoteRecordingViewController.h" #import "OWRecordingTableViewCell.h" #import "OWStrings.h" #import "OWUtilities.h" diff --git a/OpenWatch/OpenWatch-Prefix.pch b/OpenWatch/OpenWatch-Prefix.pch index 5e04db8..2c2bd32 100644 --- a/OpenWatch/OpenWatch-Prefix.pch +++ b/OpenWatch/OpenWatch-Prefix.pch @@ -2,6 +2,7 @@ // Prefix header for all source files of the 'OpenWatch' target in the 'OpenWatch' project // + #import #ifndef __IPHONE_3_0 @@ -16,4 +17,5 @@ #import "CoreData+MagicalRecord.h" #import "TestFlight.h" #import "OWCheckpoints.h" +#define NSLog(__FORMAT__, ...) TFLog((@"%s [Line %d] " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) #endif