---
title: "What is the difference between the frame and the bounds in iOS?"  
description: "What is the difference between the frame and the bounds in iOS?"  
author: "Sunil Singh"  
published: 2017-01-12  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/23178/what-is-the-difference-between-the-frame-and-the-bounds-in-ios  
category: "ios"  
tags: ["iphone", "ios", "iphone sdk", "uiview"]  
reading_time: 1 minute  

---

# What is the difference between the frame and the bounds in iOS?

**Frame:**The frame of an UIView is the rectangle, expressed as a location (x,y) and size (width,height) relative to the superview it is contained within.

**Bounds****:**The bounds of an UIView is the rectangle, expressed as a location (x,y) and size (width,height) relative to its own coordinate system (0,0).

\

## Answers

### Answer by Sunil Singh

**Frame:**The frame of an UIView is the rectangle, expressed as a location (x,y) and size (width,height) relative to the superview it is contained within.

**Bounds****:**The bounds of an UIView is the rectangle, expressed as a location (x,y) and size (width,height) relative to its own coordinate system (0,0).

\


---

Original Source: https://www.mindstick.com/interview/23178/what-is-the-difference-between-the-frame-and-the-bounds-in-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
