iOS Question:

Download Job Interview Questions and Answers PDF

Can you please explain the difference between frame and bounds?

iOS Interview Question
iOS Interview Question

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 Interview Questions And Answers PDF

Previous QuestionNext Question
What is retain counts?Can a "delegate" retained in iOS?