목록Programming (12)
티라미수 코딩생활

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..

* HTML뿐만 아니라 JSP를 활용한 코드입니다. 날짜와 시간을 나타낼 때 사용하는 GregorianCalendar 클래스를 활용해 보았습니다. 2021-05-06 처럼 나타내기 위해서는 format 을 "%TF"로 주면 설명처럼 yyyy-mm-dd 형태로 나타냅니다. 23:33:40 와 같이 현재 시간을 나타내는 것은 "%TT" 로 format을 줍니다. 2021년 05월 06일 , 23시 21분 53초 와 같이 웹 구성에 자주 쓰이는 표현도 아래 코드를 간단히 적어두었습니다. 코드 & 결과 - now 로 인스턴스를 주었고, date 와 time으로 각각 변수를 주어 활용하였습니다.