From c5089bc25c71c4970535fef812c638d9c2184c75 Mon Sep 17 00:00:00 2001 From: "Peter J. Keleher" <keleher@cs.umd.edu> Date: Sun, 19 Apr 2020 12:09:50 -0400 Subject: [PATCH] auto --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 46ecd40..437ebdb 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,16 @@ -We have built a very small example app that contains a FirstController and a SecondController wrapped in a navigation controller. +We have built a very small example app that contains first `FirstController` and `SecondController` class definitions defined in a single file. The files are setup for a simple example in use of navigation controllers and delegation. **You need to write the code to make this work.** -You need to write the code to make this work. +See the included demo movie. Make this happen in your version. The way this is intended to work is: - The FirstController has a label that says "nothing yet". -- Clicking on "Second" segues to the SecondController, which has a textField. The FirstController must TELL the SecondController to specify "Change Me!" as the initial value of it's TextField. -- When the user hits the "Back" nav button, the SecondController informs the FirstController of the TextField's new value, which the FirstController sets as it's label's new value. +- Clicking on "Second": + - segues to the SecondController, which has a textField. + - and the `FirstController` must TELL the `SecondController` to specify **"Change Me!"** as the initial value of it's `TextField`. +- When the user hits the "Back" nav button: + - the `SecondController` informs the `FirstController` of the `TextField`'s new value + - which the `FirstController` sets as it's label's new value. It's unorthodox, but we want you to write all the code for two controllers together in the supplied box (the "ViewController.swift" file). -- GitLab