본문 바로가기

iOS/STUDY

[iOS] IBOutlet, IBAction (Xcode 12.4)

  1. 코드로 먼저 IBOutlet (=IBAction) 을 생성한 후 인터페이스 빌더의 Oultet Inspector 를 통해 연결
  2. 코드로 먼저 IBOutlet (=IBAction) 을 생성한 후 인터페이스 빌더에서 View Controller 우클릭 후 팝업에서 연결
  3. 인터페이스 빌더에서 코드로 끌어당겨 연결

 

연결 후에 이름 함부로 바꾸지 말 것 !

 

IBOutlet - 코드의 왼쪽 동그란 부분에서 끌어당기기 (1)

 

IBAction

 

Xcode help - Add an outlet connection to send a message to a UI object

https://help.apple.com/xcode/mac/current/#/devc06f7ee11

 

https://help.apple.com/xcode/mac/current/#/devc06f7ee11

To see this page, you must enable JavaScript. Pour afficher cette page, vous devez activer JavaScript. Zur Anzeige dieser Seite müssen Sie JavaScript aktivieren. このページを表示するには、JavaScript を有効にする必要があります。

help.apple.com

 

'iOS > STUDY' 카테고리의 다른 글

[iOS] UIButton, UISlider, UILabel  (0) 2021.01.29
[iOS] 컨트롤 이벤트 종류 (controll event)  (0) 2021.01.29
[iOS] 에셋 (asset)  (0) 2021.01.29
[iOS] 애플 공식 문서  (0) 2021.01.29
[Xcode] 알아두면 좋을 단축키  (0) 2021.01.29