junioriOS
What are IBOutlets and IBActions?
Updated May 6, 2026
Short answer
IBOutlets connect UI elements; IBActions handle events.
Deep explanation
IBOutlets link storyboard UI to code; IBActions respond to user interactions.
Real-world example
Button click updates label text.
Common mistakes
- Force unwrapping outlets incorrectly.
Follow-up questions
- Can outlets be optional?
- Storyboard vs programmatic UI?