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

Swift Language

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

Swift Language

검색하기 폼
  • 분류 전체보기 (4)
    • CollectionView (1)
    • Functions (2)
  • 방명록

load segue in swift 3.0

func goToDifferentView() { self.performSegue(withIdentifier: "segue", sender: self) }

카테고리 없음 2017. 1. 21. 17:32
completion types in swift 3.0

func startGADInterstitial(completion: (() -> Void)!){ } // completion option 1startGADInterstitial(completion: nil }) // completion option 2startGADInterstitial(completion: { () -> Void in }) ============================================================================ typealias CompletionHandler = (success:Bool) -> Void func downloadFileFromURL(url: NSURL,completionHandler: CompletionHandler) { ..

Functions 2016. 11. 30. 13:09
Timer Function

There is simple example timer in swift 3.0 class ViewController: UIViewController { var Timer :Foundation.Timer = Foundation.Timer() override func viewDidLoad() { Timer = Foundation.Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(ViewController.UpdateTimer), userInfo: nil, repeats: true) } func UpdateTimer(){ //Do something up to you } @IBAction func onClickedStopStart(_ ..

Functions 2016. 10. 16. 18:21
이전 1 2 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바