iOS Question: Download iOS PDF

Can you please explain the difference between frame and bounds?

Tweet Share WhatsApp

Answer:

The frame of a view is the rectangle, expressed as a location (x,y) and size (width,height) relative to the super-view 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).

Download iOS PDF Read All 44 iOS Questions
Previous QuestionNext Question
What is retain counts?Can a "delegate" retained in iOS?