Explain the difference between bounds and frame?



Explain the difference between bounds and frame?..

Answer / Bharat Bhushan

In Apple iOS, both `bounds` and `frame` properties of a UIView represent its size and position relative to its parent view or superview. However, they differ slightly in their purpose and calculation:n
1. Frame: Represents the absolute position and size of a view within its superview's coordinate system. It includes any transformations applied to the view, such as translations or rotations.
2. Bounds: Represents the size and position of a view's content area, without considering any transformations applied to the view. The bounds origin is always (0, 0) regardless of the view's position.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

Explain difference between release and autorelease?

1 Answers  


what are fetched properties? How do you create a fetched property?

1 Answers  


What are various singleton instances provided by frameworks?

1 Answers  


What is Process?

1 Answers  


Is ios multithreading?

1 Answers  


what is Xcode command line tools package?

1 Answers  


Assume that an app is not in foreground but is still executing code. In which state will it be in?

1 Answers  


What’s the difference between not-running, inactive, active, background and suspended execution states?

1 Answers  


What is synthesize in ios?

1 Answers  


Define decoding or deserialization?

1 Answers  


is code completion is active by default in iphone development?

1 Answers  


What are ios apps coded in?

1 Answers  


Categories