Skip to content

Instantly share code, notes, and snippets.

@edwardinubuntu
Last active November 28, 2016 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardinubuntu/a4130367c07393fbb8d12fb768e1e53c to your computer and use it in GitHub Desktop.
Save edwardinubuntu/a4130367c07393fbb8d12fb768e1e53c to your computer and use it in GitHub Desktop.
tibame.com iOS Swift 綜合練習題

台北市銀髮族服務 - 社區照顧關懷據點

實作一個臺北市銀髮族服務據點查詢 App。

涵蓋課程範圍

  • 網路
  • 地圖
  • Storyboard 介面指示 Actionsheet
  • Storyboard 基本介面
  • Swift 資料整理

檢核項目

  • 使用開放政府資料的 API http://data.taipei/opendata/datalist/apiAccess?scope=resourceAquire&rid=11930dc6-4092-4bde-a42c-7722e0416462

  • 將政府提供經緯度座標,圖標插到地圖上。

  • 圖標當點擊下去,用 AlertViewController 的 Actionsheet 顯示 1. 更多資訊 2. 取消。

  • UIActionButton 的更多資訊顯示單位名稱、地址、電話、說明,只用的 Key ORG_NAME: ADDRESS: PHONE: ORG_INTRODUCTION,範例: "臺北市文山區萬和社區發展協會", "臺北市11676汀洲路四段215號1樓", "02-29310147", "開放時間週一至週五08:30-11:30,14:00-17:00,詳情請洽單位並以單位公告為準。"

  • 在此頁右上角 UINavigationItem 實作一個 UINavigationButtonItem,點擊下去顯示自己的學號與姓名。

  • 每一個檔案開頭註解要寫自己姓名或是學號。例如:

    //
    // ViewController.swift
    // MyMapView
    //
    // Created by Edward Chiang on 24/10/2016.
    // Copyright © 2016 TKU. All rights reserved.
    //

參考資料

繳交圖片範本

自己學號姓名

simulator screen shot 28 nov 2016 4 51 32 pm

資料顯示於地圖

simulator screen shot 28 nov 2016 4 51 40 pm

顯示選單

simulator screen shot 28 nov 2016 4 51 51 pm

顯示詳細資料

simulator screen shot 28 nov 2016 4 51 54 pm

程式碼版權宣告

viewcontroller_swift

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment