[Swift] 웹 개발 : 앱 시작 시 페이지 보이기

지정 웹 페이지 보여 주기

    func loadWebPage(_ url: String) {
        let myURL = URL(string: url)
        let myRequest = URLRequest(url: myURL!)
        webView.load(myRequest)
    }
* Info.plist 파일 선택
* Information Property List에 항목 추가
* App Transport Security Setting 선택
	* App Transport Security Setting에 하위 항목 추가
	* Allow Arbitrary Loads 선택 -> value값을 Yes로 변경

Continue reading

[Error] : this class is not key value coding-compliant for the key 에러 발생시

Info.plist의 파일을 다 수정한 이후에도 계속 this class is not key value coding-compliant for the key라는 오류가 떠서 outlet이 연결된 것이나 action 연결들을 보니 flexible space bar button item들이 들어있는 상위 카테고리의 toolBar를 아웃렛 변수로 추가해서 Run을 했을 때 꼬여서 그런 것 같다. 개발 하면서 library에 있는 것들을 실수로 연결해놓고 삭제를 안해서 이런 연결 문제가 생긴듯. 앞으로는 이런 실수는 하지 말도록 주의할 것!

Continue reading

Pagination