Latest Posts

[iOS] Realm db file의 위치를 찾는 법

Posted on 2017-04-05 17:04:56

아래의 코드를 추가하여 Realm db 파일의 위치를 debug console에 출력한다. print(Realm.Configuration.defaultConfiguration.fileURL!)   그리고 Finder를 열고 Cmd-Shift-G 단축키를 누른 후, 입력창에 경로를 복사하고 go 버튼을 누른다. 그러면 해당 경로로 바로 이동할 수 있고, realm db file을 open하면 Realm browser가 실행된다.  

[iOS] HTTP 허용하기

Posted on 2017-03-30 00:54:03

iOS에서 http 통신을 하려고 하면 아래와 같은 에러가 발생한다. Apple에서 보안상의 이유로 http 통신을 막아둔 것이다. App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.   물론 실서비스에서는 https를 사용해야겠지만, 개발이나 테스트시에는 부득시하게 http를 사용해야 하는 경우가 있다. 그런 경우에는 Info.plist 파일을 수정하여 http 통신을 임시로 허용할 수 있다. &nbs...

[iOS] 유용한 오픈소스 라이브러리

Posted on 2017-03-23 23:13:21

• Carthage - dependency manager for Cocoa https://github.com/Carthage/Carthage   • Alamofire - HTTP library https://github.com/Alamofire/Alamofire   • SwiftyJSON - JSON handling https://github.com/SwiftyJSON/SwiftyJSON   • CryptoSwift - cryptographic library https://github.com/krzyzanowskim/CryptoSwift   • SDWebImage - Asynchronous image downloader https://github.com/rs/SDWebImage   • Core Plot - 2D plotting framework https://github.com/core-plot/core-plot    • Realm - Mob...