Logs
더블 클로저를 이용한 프로그레스바
+ 원리, 그래픽 소스까지 넣으면 복잡.클로저는 간단하다. import UIKit func textT(_ first : ()-> (), _ second : ()-> ()) { first() second()} textT( { print("first") }, { print("second") }) 보통 클로저는 하나만 쓰기 때문에 ()를 닫아 버리고 {} 로 대체 가능하다. import UIKit func textT(_ first : ()-> (), _ second : ()-> ()) { first() second()} textT( { print("first") }) { print("second") } class ViewController: UIViewController { func textT(_ first ..
2019. 1. 2. 15:16
최근댓글