summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrettyWhite <geekman3454@protonmail.com>2017-05-15 15:03:23 -0400
committerBrettyWhite <geekman3454@protonmail.com>2017-05-15 15:03:23 -0400
commit1dc93bed8797e1e59e6d053a36ad2c4b9a99fa84 (patch)
tree0edc54e3281db013605ec69b295ee43742b7e2ed
parent284c831b0e8d4981c788daace5640a7621c586c8 (diff)
downloadsdl_ios-1dc93bed8797e1e59e6d053a36ad2c4b9a99fa84.tar.gz
done w/ connection container vc
-rw-r--r--SmartDeviceLink-ExampleSwift/ConnectionContainerViewController.swift5
1 files changed, 2 insertions, 3 deletions
diff --git a/SmartDeviceLink-ExampleSwift/ConnectionContainerViewController.swift b/SmartDeviceLink-ExampleSwift/ConnectionContainerViewController.swift
index d4b9e1abb..ca1335466 100644
--- a/SmartDeviceLink-ExampleSwift/ConnectionContainerViewController.swift
+++ b/SmartDeviceLink-ExampleSwift/ConnectionContainerViewController.swift
@@ -18,9 +18,10 @@ class ConnectionContainerViewController: UIViewController {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
navigationController?.navigationBar.isTranslucent = false
- // Setup the child VCs
+ // Create object of storyboards
let tcpControllerStoryboard = UIStoryboard(name: "ConnectionTCPTableViewController", bundle: nil)
let iapControllerStoryboard = UIStoryboard(name: "ConnectionIAPTableViewController", bundle: nil)
+ // Create object of viewController
let tcpController = tcpControllerStoryboard.instantiateViewController(withIdentifier :"ConnectionTCPTableViewController")
let iapController = iapControllerStoryboard.instantiateViewController(withIdentifier :"ConnectionIAPTableViewController")
// Add view controllers to array
@@ -42,13 +43,11 @@ class ConnectionContainerViewController: UIViewController {
switch segmentedControl.selectedSegmentIndex
{
case 0:
- print("TCP Selected")
// Remove other VC from view
removeFromView()
// Load up the VC we want
loadChildViewController(index: 0)
case 1:
- print("iAP Selected")
// Remove other VC from view
removeFromView()
// Load up the VC we want