Question: 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:)

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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!