let storyboard = UIStoryboard(name: "Main", bundle: nil)
let myAlert = storyboard.instantiateViewController(withIdentifier: "alert")
myAlert.modalPresentationStyle = UIModalPresentationStyle.overCurrentContext
myAlert.modalTransitionStyle = UIModalTransitionStyle.crossDissolve
self.present(myAlert, animated: true, completion: nil)
self.dismiss(animated: true, completion: nil)

Photo by Gustas Brazaitis on Unsplash

override func viewWillAppear(_ animated: Bool) {

let firstImageView = UIImageView(image: UIImage(named: "001"))
firstImageView.frame = view.frame
firstImageView.contentMode = .scaleAspectFill

imageFadeIn(imageView: firstImageView)

func imageFadeIn(imageView: UIImageView) {

let secondImageView = UIImageView(image: UIImage(named: "002"))
secondImageView.frame = view.frame
secondImageView.contentMode = .scaleAspectFill
secondImageView.alpha = 0.0

view.insertSubview(secondImageView, aboveSubview: imageView)

UIView.animate(withDuration: 2.0, delay: 2.0, options: .curveEaseOut) {
secondImageView.alpha = 1.0
} completion: { _ in
imageView.image = secondImageView.image
  1. 在網路上尋找全臺地址資料。
  2. 將資料在APP內載入。
  3. 進行資料分類,因資料為全臺資料,為方便使用者選擇,必須分類。
  4. 填完地址,按定位鈕,進行地圖定位。
  5. 完成。
Photo by Simon Rae on Unsplash

Stephen Huang

Wish me luck on the way become iOS app developer!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store