목록Programming/Swift (4)
티라미수 코딩생활
보호되어 있는 글입니다.

1. 프로젝트 만들고 한번 완전히 xcode를 끈다. 2. Terminal 로 프로젝트가 있는 파일위치로 가기 (cd /~~~~~/) 3. pod init 하면 Podfile 생성 4. Podfile 파일을 열어서 아래 코드 추가 pod 'Kanna','~>5.0.0' 5. Terminal 에서 pod install 입력 6. 잘 설치되면 녹색으로 Installing Kanna (5.0.0) 이라고 뜬다! 7. 프로젝트(.xcworkspace 확장자)를 더블클릭으로 열었을 때 8. 이렇게 뜨면 잘 설치를 한 것이다!

Table View Controller Object 는 Android 의 Listview 와 유사한 기능이다. 1. Main.storyboard 와 project에 있는 ViewController 를 지워준다. 2. Table View Controller Object 를 storyboard 에 추가해준다. 3. Embed In > Navigation bar 하고 initial 해준다. 4. 이어지는 ViewController 들을 만들어주고 View 를 구성한다. 5. TableViewController 와 다른 ViewController 를 연결해준다. TableViewController 에서 Tv list View와 리스트 Detail 을 담당하는 ViewController 를 연결시켜준다. Tabl..

1. GPS 사용을 위한 사전 준비 App needs location servers for stuff 2. import MapKit & 전역변수 /// My Location let myLoc = CLLocationManager() 3. Extension 으로 기능 추가해주기 /// Extension - Use GPS // let myLoc = CLLocationManager()가 호출시 자동 실행 extension ViewController:CLLocationManagerDelegate{ // GPS 는 지속적으로 받아와야하니까 locations 이다. func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLL..