Skip to content

Instantly share code, notes, and snippets.

@torpedo87
Created January 25, 2019 10:46
Show Gist options
  • Save torpedo87/5c33375bfabccaf5977b907082395b9c to your computer and use it in GitHub Desktop.
Save torpedo87/5c33375bfabccaf5977b907082395b9c to your computer and use it in GitHub Desktop.
storyboard

storyboard

  • static tableview 는 datasource 코드없이 테이블 구성 가능
  • Static table views are only valid when embedded in UITableViewController instances

dock

  • 해당 scene 의 top level object 를 나타낸다
  • view controller
  • first responder
  • exit : segue를 인자로 갖는 모든 액션메소드에 접근할 수 있다. 따라서 현재 컨트롤러에서 해당 segue 를 통해 다른 컨트롤러로 탈출

embed

  • editor 메뉴 -> embed in
  • container 3가지 : navigation controller, tabbar controller, splitview controller
  • 여러 뷰를 선택해서 스택뷰에 넣기

segue

  • changes what’s on the scene
  • override func prepare(for segue: UIStoryboardSegue, sender: Any?) 메소드를 통해 transition 하기 직전에 처리할 업무를 한다

storyboard reference

  • split up an existing storyboard into one or more smaller storyboard files, separated by logical areas of functionality
  • 하나의 스토리보드에 여러 컨트롤러가 들어있으면 헷갈리므로 분리한다
  • 분리할 컨트롤러들을 선택한 후 Editor -> refactor to storyboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment