Add setting to AppRTCMobile for iOS, that can change capture resolution.

To achieve this, several changes needed to be made on both UI and
app logic level.
* Settings view controller is added (modally shown when the settings
button is pressed).
	- From there the user can see the current capture resolution
and select another capture resolution.
* Model class for the capture resolution added.
	- Improves readability and makes separation of concerns cleaner
	- Handles persisting
	- Provides defaults
	- Maps video resolution setting to RTCMediaConstraints dictionary
* Test for the model class

In future it would be possible to extend this CL and add further settings (i.e
bit rate).
Also it would be easy to remove the hardcoded resolutions and use dynamic values
depending on device capability.

BUG=webrtc:6473

Review-Url: https://codereview.webrtc.org/2462623002
Cr-Commit-Position: refs/heads/master@{#14881}
diff --git a/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m b/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m
index f7e03bc..33ff8fa 100644
--- a/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m
+++ b/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m
@@ -19,9 +19,11 @@
 
 #import "ARDAppClient.h"
 #import "ARDMainView.h"
+#import "ARDMediaConstraintsModel.h"
+#import "ARDSettingsViewController.h"
 #import "ARDVideoCallViewController.h"
 
-static NSString *barButtonImageString = @"ic_settings_black_24dp.png";
+static NSString *const barButtonImageString = @"ic_settings_black_24dp.png";
 
 @interface ARDMainViewController () <
     ARDMainViewDelegate,
@@ -169,6 +171,16 @@
 
 #pragma mark - Private
 - (void)showSettings:(id)sender {
+  ARDSettingsViewController *settingsController =
+      [[ARDSettingsViewController alloc] initWithStyle:UITableViewStylePlain
+                                 mediaConstraintsModel:[[ARDMediaConstraintsModel alloc] init]];
+  UINavigationController *navigationController =
+      [[UINavigationController alloc] initWithRootViewController:settingsController];
+  [self presentViewControllerAsModal:navigationController];
+}
+
+- (void)presentViewControllerAsModal:(UIViewController *)viewController {
+  [self presentViewController:viewController animated:YES completion:nil];
 }
 
 - (void)configureAudioSession {