0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Swift】郵便番号が存在するか確認するコード

Last updated at Posted at 2021-08-26

入力した郵便番号が存在するか確認するコード。

    let geocoder = CLGeocoder()
    geocoder.geocodeAddressString("1000012", completionHandler: {(placemarks, error) -> Void in
        if((error) != nil){
            print("error")
        }
        if let placemark = placemarks?.first {
            print("success!")
        }
    })

参考:

Swiftのお役立ち情報

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?