Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write code in swift that will allow the figures below to function correctly. For instance: When the top segment control is selected as Lexington the

Write code in swift that will allow the figures below to function correctly.

For instance: When the top segment control is selected as Lexington the second segment control should then show the two options Keeneland and Arboretum. Once one of the two are selected it should then show the correct picture.

In the second figure, once the top segment is selected as Chicago the second segment control should then show the options of Millenium Park, Skydeck, Cruise, and Planetarium. Once one of those are selected it should show the correct picture.

You can use statements such as removeAllSegments() and insertSegment(with Title:, at:, animated:)

image text in transcribed

Carrier 4:03 PM Carrier 4:06 PM Carrier 4:09 PM Lexington Chengdu Chicago Hongkong Lexington Chengdu Chicago Hongkong Lexington Chengdu Chicago Hongkong Keeneland Arboretum Millennium. Skydeck Cruise Planetarium Millennium... Skydeck Cruise Planetarium Lexington: Keeneland Chicago: Millennium Park Chicago: Planetarium Figure 1 Figuru 2 Figuru 3 Carrier 4:03 PM Carrier 4:06 PM Carrier 4:09 PM Lexington Chengdu Chicago Hongkong Lexington Chengdu Chicago Hongkong Lexington Chengdu Chicago Hongkong Keeneland Arboretum Millennium. Skydeck Cruise Planetarium Millennium... Skydeck Cruise Planetarium Lexington: Keeneland Chicago: Millennium Park Chicago: Planetarium Figure 1 Figuru 2 Figuru 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions