There is a xib with a a dark view (called calendarView) in it

Next is I am adding a subView called calendar ( this is a calendar view from this page )
[self.calendarView addSubview:calendar];
And the result is :the calendar is added but it is cover the calendarView

My question :
- what will happen when you try to add a bigger view into a small view.
- How to make a bigger view fit in the the small view.
in general the subview will draw itself bigger then the superview. if you dont want that to happen you should set the subview’s frame to smaller or equal to the superview’s bounds.
if the subview is a costume class you made, you should probably change it to be in the right size, otherwise I think the best way to do it is with transform