> For the complete documentation index, see [llms.txt](https://ios-course.cornellappdev.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ios-course.cornellappdev.com/course-content/week-2-or-uikit-mvc-and-control/wednesday-or-mvc-and-control-navigation-+-delegation.md).

# Wednesday | MVC and Control (Navigation + Delegation)

[Where we at](https://intro-to-ios.github.io/course-curriculum/)

<details>

<summary><strong>Interactive Demo:</strong> Struct vs Class</summary>

{% embed url="<https://intro-to-ios.github.io/Lec3-struct-vs-class/>" fullWidth="true" %}
Interactive Demo :)&#x20;
{% endembed %}

</details>

<details>

<summary><strong>Follow Along Demo:</strong> UIKit Navigation Management </summary>

{% embed url="<https://github.com/intro-to-ios/lec3-navigation>" %}
If you prefer to download the ZIP, go to Code > Download ZIP.
{% endembed %}

### Using git in Terminal

#### Clone the Repository

```sh
git clone https://github.com/intro-to-ios/lec3-navigation.git
```

#### 2. Checkout Branches

* **If you fall behind during demo**
  * **restore** using "git restore ."&#x20;
    * or stash using "git stash"
  * then checkout a completed code to start the next demo

```sh
git checkout 1-navigation
```

```sh
git checkout 2-delegation
```

</details>

### Lecture Slides

{% embed url="<https://docs.google.com/presentation/d/1UxmsScpTNESBTpwr2aLyW1GBiB5zy4TBKnGug0dYAfw/edit?usp=sharing>" %}

#### Spring 2026 Lecture Video <a href="#spring-2026-lecture-video" id="spring-2026-lecture-video"></a>

{% embed url="<https://youtu.be/SCUA8sPU4Uc?si=A4IflQvtEZ9d3mHx>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ios-course.cornellappdev.com/course-content/week-2-or-uikit-mvc-and-control/wednesday-or-mvc-and-control-navigation-+-delegation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
