Skip to content

Commit

Permalink
Update NationalFlags with the four countries chosen
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Hyche committed Aug 13, 2017
1 parent 5eb856f commit aba8e5f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ class DataViewController: UIViewController {
switch country {
case "France":
configureFlagFrance()
case "Italy":
configureFlagItaly()
case "Germany":
configureFlagGermany()
case "United Arab Emirates":
configureFlagUAE()
case "Norway":
configureFlagNorway()
default:
break
}
Expand All @@ -42,7 +46,15 @@ class DataViewController: UIViewController {
// Your code here
}

func configureFlagItaly() {
func configureFlagGermany() {
// Your code here
}

func configureFlagUAE() {
// Your code here
}

func configureFlagNorway() {
// Your code here
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ModelController: NSObject, UIPageViewControllerDataSource {
override init() {
super.init()
// Create the data model.
pageData = ["France", "Italy"]
pageData = ["France", "Germany", "United Arab Emirates", "Norway"]
}

func viewControllerAtIndex(_ index: Int, storyboard: UIStoryboard) -> DataViewController? {
Expand Down

0 comments on commit aba8e5f

Please sign in to comment.