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:)
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 3Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started