LearnThatStack Ace your next interview
Mobile Development
UIKit.
39 Qs 5 free
Change topic Change
Drill · questions

All questions

of 39
Beginner 6
01

What is the difference between UIView and UIViewController?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

UIView is the fundamental building block for all visual elements in iOS. It represents a rectangular area on the screen and handles drawing and user interaction within that area. Views can contain other views (subviews) and form a view hierarchy.

UIViewController manages a collection of views and coordinates the logic between the model and view layers. It handles view lifecycle events, user interactions, and navigation between different screens.

// UIView - represents visual element
let myView = UIView(frame: CGRect(x: 0, y: 0, width: 100, height: 100))
myView.backgroundColor = .blue

// UIViewController - manages views and logic
class MyViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        view.addSubview(myView)
    }
}
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

02

Explain the view hierarchy in UiKit.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

The view hierarchy is a tree-like structure where views contain other views as subviews. Each view has a superview (parent) and can have multiple subviews (children). The root view is typically managed by a view controller.

Key characteristics:

  • Child views are drawn on top of their parent views
  • Coordinate systems are relative to the superview
  • Events bubble up through the hierarchy
  • Views inherit certain properties from their superviews
let parentView = UIView()
let childView1 = UIView()
let childView2 = UIView()

parentView.addSubview(childView1)
parentView.addSubview(childView2)
// childView2 will be drawn on top of childView1
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

03

What are the main properties of UIView?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Key UIView properties include:

  • frame: Position and size in superview's coordinate system
  • bounds: Internal coordinate system (always origin at 0,0)
  • center: Center point in superview coordinates
  • backgroundColor: Background color of the view
  • alpha: Transparency level (0.0 to 1.0)
  • isHidden: Visibility state
  • tag: Integer identifier for finding views
  • superview: Parent view reference
  • subviews: Array of child views
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

04

What is Auto Layout and why is it important?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Auto Layout is a constraint-based layout system that automatically calculates the size and position of views based on rules (constraints) you define. It's important because:

  • Responsive Design: Adapts to different screen sizes and orientations
  • Dynamic Content: Handles varying content sizes automatically
  • Internationalization: Supports different languages and text directions
  • Accessibility: Works with Dynamic Type and accessibility features

Auto Layout uses mathematical relationships between views instead of fixed frames, making UIs flexible and maintainable.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

05

Explain the difference between UITableView and UICollectionView.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

UITableView displays data in a single column of rows. It's optimized for vertical scrolling and is ideal for lists, settings screens, and hierarchical data.

UICollectionView displays data in a customizable grid layout. It supports multiple columns, horizontal scrolling, and complex layouts like grids, carousels, or custom arrangements.

Key differences:

  • TableView: Single column, vertical scrolling, simpler implementation
  • CollectionView: Multiple columns, any scroll direction, more flexible but complex
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

06

What is UINavigationController and how does it work?

Part of Pro
Intermediate 25
07

What is the difference between frame and bounds?

Part of Pro
08

Describe the view controller lifecycle methods and their purposes.

Part of Pro
09

When would you use viewWillAppear vs viewDidLoad?

Part of Pro
10

What is the purpose of loadView() and when should you override it?

Part of Pro
11

What are the different types of constraints in Auto Layout?

Part of Pro
12

What is content hugging and compression resistance priority?

Part of Pro
13

How do you resolve Auto Layout conflicts?

Part of Pro
14

What is intrinsic content size?

Part of Pro
15

What is cell reuse and why is it important?

Part of Pro
16

How do you implement a custom table view cell?

Part of Pro
17

What are the required and optional methods of UITableViewDataSource?

Part of Pro
18

How do you implement swipe actions in a table view?

Part of Pro
19

How do you pass data between view controllers?

Part of Pro
20

What is the difference between modal presentation and navigation?

Part of Pro
21

What are the different modal presentation styles?

Part of Pro
22

What are gesture recognizers and how do you use them?

Part of Pro
23

How do you handle multiple gesture recognizers on the same view?

Part of Pro
24

How do you create basic animations in UiKit?

Part of Pro
25

What properties can be animated with UIView animations?

Part of Pro
26

How do you create a custom view with custom drawing?

Part of Pro
27

When should you use drawRect vs adding subviews?

Part of Pro
28

What are the pros and cons of Interface Builder vs programmatic UI?

Part of Pro
29

How do you create UI elements programmatically?

Part of Pro
30

How do you handle memory warnings in view controllers?

Part of Pro
31

How do you implement Dark Mode support in UiKit?

Part of Pro
Expert 8
32

What is the responder chain and how does touch handling work?

Part of Pro
33

What is the difference between UIView animations and Core Animation?

Part of Pro
34

How does memory management work with view controllers and strong reference cycles?

Part of Pro
35

What are some best practices for UiKit performance optimization?

Part of Pro
36

What are size classes and how do you use them for adaptive layouts?

Part of Pro
37

What is UIKit Dynamics and when would you use it?

Part of Pro
38

How do you implement accessibility in UiKit applications?

Part of Pro
39

What are some common UiKit design patterns and when to use them?

Part of Pro

No matches

Try a different filter or search term.

Pro · $10/mo

34 of 39 UIKit answers are gated.

Full answers, code samples, AI explanations - simpler, deeper, or as an interactive diagram. Cancel anytime.

  • Full answers + code
  • AI explain - simpler, deeper, or visualized
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

JAM

JavaScript, APIs, and Markup

Serverless on AWS

Serverless Architecture on AWS

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Flutter Mobile

Flutter Cross-Platform Mobile Development

Cross-cutting topics 44 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

Web3 / Ethereum

Solidity, Ethereum, Hardhat, Foundry

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git
Big-O & Complexity Analysis Arrays, Strings & Hash Tables Linked Lists, Stacks & Queues Trees, BSTs & Heaps Graphs Sorting, Searching & Recursion Operating Systems Concurrency & Multithreading Networking for Developers Git & Version Control API Design 45 Distributed Systems Fundamentals 34

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.


Cross-cutting topics 45 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.