12345678910111213141516171819202122232425262728293031323334353637import UIKit class ViewController: UIViewController ,UIPreviewInteractionDelegate{ var preInteraction : UIPreviewInteraction! override func viewDidLoad() { super.viewDidLoad() preInteraction = UIPreviewInteraction(view: view) preInteraction.delegate = self } func previewInteraction(_ previewInteraction: UIPreviewInteraction, didUpd..
UILabel에서 부분적으로 글자의 크기나 폰트를 변경하고싶다면!!! 123456789101112131415161718192021222324252627282930import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. self.setLabel() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be..
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)..
- Total
- Today
- Yesterday