DPS923 MAP523 Week 11 Notes
Monday, March 23 - online lecture
Thursday, March 26 - Test 3, and online help
A brief introduction to mapping services. And, more app-building topics.
Monday, March 23 (after the pause)
We will cover these - discuss, show-and-tell, diagram, etc. - in the Monday class. While some brief notes are included below, be prepared to take your own notes.
Introduction to mapping services.
Using a table view as a select list.
Core Data and photo storage.
A reminder to learn via the code examples.
Thursday, March 26
On this day, Test 3 will be written. It is worth 14%. It covers all topics covered since the last test.
Here is more and general information about the upcoming test.
Then, in the remaining time, work on the programming assignment, and get help from a classmate or the professor if you need it.
The course’s GitHub repo has code examples for many topics and techniques. You can download a zip of the code repo, or clone it.
Here’s a list of topics that we learned something about this week:
- MKMapView is the user interface object that can be placed on a scene.
- To use it on a scene, some configuration must be done, an outlet, and other settings.
- MKMapView needs a coordinate for its center point and a scale.
- The coordinate can be provided, or the current user location can be used, as the center point.
- If a map view is to be a full-screen viewer (or selector), then use the task pattern to present it modally.
- It is fairly easy to add a map annotation, which appears as a red pin-drop.
- Any coordinate (provided, current user location, map annotation) can also include title info that appears when tapped.
- The documentation links have many nore interesting facts and guidance items.
- Item-selection is a commonly done task, and the base iOS SDK has many built-in item selectors (name them - there are eight).
- In addition, a table view can be used as an item selector, and is preferred for many scenarios.
- In that scenario, use a task pattern to present it modally.
- Its source of data can be anything - static, programmatically-generated, or fetched from the data store of from the network.
- Configure the cell with enough data to enable the user to make a selection with confidence.
- Optionally, you can support (disclosure or detail) workflow to even more detailed data, if required.
- Multiple select can be configured, if required.
- Core Data enables the management and storage of byte-oriented data, like photos, audio, or video.
- For the entity attribute, the Core Data type is “Binary Data”, and it should (must?) be configured as “Allows External Storage”.
- For a photo, we write code to marshal it back-and-forth to-and-from
- The code examples offer several learning opportunities, so make sure they are carefully studied and executed.