728x90 ๋ฐ์ํ applemap1 [iOS] ์ ํ์ง๋์ ๋ฒ์ ํ์ํ๊ณ ์์ ํน์ ์์น๊ฐ ์ํด์๋์ง ํ์ธํ๊ธฐ(Make range and Verify location is inside with MapKit) ์๋ ํ์ธ์ Foma ์ ๋๋ค! ์ ๋ฒ ์๊ฐ์๋ ์ํ๋ ์์น๋ฅผ ํ์ํ๊ณ ์ด๋ฏธ์ง์ ๋ ์ด๋ธ์ ๋ฃ์ด๋ณด์๋๋ฐ์. (ํน์ ์๋ณด์ ๋ถ๋ค์ ์ฌ๊ธฐ ๋ฅผ ํตํด์ ๋ณด๊ณ ์์ฃผ์ธ์!) ์ด๋ฒ ์๊ฐ์๋ ์ํ๋ ์์น๊ฐ ํน์ ๋ฒ์ ์์ ์ํด์๋์ง ์๋์ง ํ์ธํด๋ณด๊ฒ ์ต๋๋ค. MKMapViewDelegate ์ถ๊ฐํ๊ธฐ ๊ฐ์ฅ ๋จผ์ ViewController์ MKMapViewDelegate๋ฅผ ์ฑํํด์ฃผ์ธ์. (๋น์ฐํ import MapKit๋ ํด์ผ๊ฒ ์ฃ ?) class ViewController: UIViewController ,MKMapViewDelegate{...} ๋ง์ปค ์ค์ ํ๊ธฐ ์ํ๋ ์์น์ ํ์ํ ๋ง์ปค๋ฅผ ๋ง๋ค์ด์ฃผ์ธ์. ์ ๋ฒ ์๊ฐ์๋ ํ๋์ ๊ตฌ์ญ๋ง ํ์ง๋ง ํ๋์ ๊ตฌ์ญ ๊ทผ์ฒ์ธ ์คํ๋ฒ ์ค๊น์ง ์ถ๊ฐํ๊ฒ ์ต๋๋ค. let mark1 = Marker( title: .. 2021. 3. 18. ์ด์ 1 ๋ค์ 728x90 ๋ฐ์ํ