tezvyn:

IBOutlet vs IBAction in Interface Builder

Source: interviewintermediate

WHAT IT TESTS: grasp of Storyboard-to-code wiring. OUTLINE: outlet references a view, action handles an event, both connect via Ctrl-drag. RED FLAG: confusing the two directions or forgetting the connection is runtime, not compile-time.

WHAT IT TESTS: whether the candidate understands how Interface Builder binds UI to code. ANSWER OUTLINE: an @IBOutlet is a property holding a reference to a view (a label, button), letting code read or mutate it; an @IBAction is a method invoked when a control fires a UIControl event like touchUpInside. Both connect by Ctrl-dragging between Storyboard and the source. RED FLAG: claiming the binding is checked at compile time, or swapping outlet and action roles.

Read the original → interview

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

IBOutlet vs IBAction in Interface Builder · Tezvyn