Starting from:

$29

Homework 6 adding three settings


School of Electrical Engineering and Computer Science

CptS 479 Mobile Application Development
Homework 6

General Instructions: Put the entire app directory into one zip file and submit as an attachment
under Content Assignments Homework 6 for this course on Blackboard Learn by the above
deadline. Note that you may submit multiple times, but only the most recent entry submitted before
the above deadline will be graded.
This homework builds on HW5 by adding three settings: a local setting to sort the quotations, a
local setting to show/hide authors, and a global setting to filter anonymous quotations. See screen
shots below. Specifically,
1. Ensure your app has all HW5 capabilities, including a table view to list and delete the
quotations, an add quotation view to add quotations, and a detail view to view the quotation
details. Note that the table deletion will need some modification so that the correct
quotation is deleted regardless of the settings.
2. On the Quotations table view, add a bar button item in the shape of a gear to the left in the
navigation bar that segues to the Settings view.
3. Add a Settings table view controller that uses a static table with two sections: “Local
Settings” and “Device Settings”. Under Local Settings include two switches with labels
“Sort Quotations” and “Show Authors”. Under Device Settings a label “Filter
Anonymous:” followed by the setting: “On” or “Off”. The app should use the UserDefaults
singleton class to store these settings.
4. The “Sort Quotations” setting should be initialized to false (off) by default. When off, the
quotations should be listed in the order added. When on, the quotations should be listed in
alphabetical order by the quotation.
5. The “Show Authors” setting should be initialized to true (on) by default. When on, the
authors should be included in the quotations list, including “Anonymous”. When off, only
the quotes (no authors) should be shown in the quotations list.
6. Add a Settings Bundle to your app, and setup just one device setting “Filter Anonymous”,
which should be a toggle switch. This setting should be initialized to false (off) by default.
When off, all quotations (whether they have an author or not) should be displayed. When
on, quotations with “Anonymous” authors should not be displayed.
7. Add the ability for the app to transition directly to the Device Settings page for the app
when the “Filter Anonymous” row is tapped in the Settings table view.
2
8. All three settings should have an immediate effect the next time the Settings table view or
the Quotations table view are displayed, even if you leave the app and return to the view.
All three settings should persist, even after terminating and restarting the app.
9. Test your app using the iPhone 11 simulator, which is the same simulator we will use to
grade your app.
10. Be sure that auto layout constraints are set so that all view elements are appropriately
displayed with no overlap or trimming regardless of device orientation.
Storyboard:
Root.plist
3
Simulator (just showing new HW6 capabilities):

More products