Whats the difference between frame and bounds?

Answer Posted / maanya

The frame of a view is the rectangle, expressed as a location (x,y) and size (width,height) relative to the superview it is contained within. The bounds of a view is the rectangle, expressed as a location (x,y) and size (width,height) relative to its own coordinate system (0,0).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do all model object attributes get marked with @dynamic and not synthesised? What does @dynamic mean?

565


So how is the new look different from the old look?

550


What is ios deadlock?

608


What is nsoperation and nsoperationqueue?

567


What is the protocol in ios?

589


Explain what is the stack of autorelease pools. How autorelease pool work under the hood?

1216


What is a memory leak ios?

559


Will iphone 6s get ios 14?

554


What is use of nsoperation?

570


What are properties in ios?

589


What is atomic and nonatomic in iOS operating system? What is run loop in iOS ?

639


What is gcd in ios swift?

611


What is dependency management?

617


What is variable in ios?

596


What is a weak var?

611