본문 바로가기 메뉴 바로가기

Dr.kim의 나를 위한 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Dr.kim의 나를 위한 블로그

검색하기 폼
  • 분류 전체보기 (55)
    • IOS - SWIFT (39)
    • IOS - STUDY (5)
    • ETC - Utility (5)
    • Node.js (4)
    • ETC - ETC (1)
    • Server (0)
    • Python (1)
  • 방명록

URL (2)
IOS SWIFT 사파리로 링크열기 (open a URL in Safari)

123456import UIKit //사파리로 링크열기if let url = URL(string: "http://tom7930.tistory.com") { UIApplication.shared.open(url, options: [:])}Colored by Color Scriptercs

IOS - SWIFT 2018. 1. 4. 14:22
SWIFT 3 - URL에서 이미지 가져오기(Download image from URL)

info.plist 파일에서 Add Row를 해주세요. ViewController 파일에서 UIImageView를 extension해주세요. 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061import UIKit extension UIImageView { func downloadImageFrom(_ link:String, contentMode: UIViewContentMode) { URLSession.shared.dataTask( with: URL(string:link)!, completionHandler: { (data, response, error)..

IOS - SWIFT 2016. 10. 30. 01:25
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory

티스토리툴바