Reputation: 55594
I have a container view controller, that adds 3 set view controller's views to it's view and sets its frame, somewhere between that and the views actually appearing, the views' frames change, and expand to the maximum frame (1024,768).
How do I go about find where and when these changes are made?
Upvotes: 0
Views: 322
Reputation: 243156
Override setFrame:
on a subclass of UIView
, make sure those controllers are instantiating views that are the same type of your subclass, and then put a breakpoint on setFrame:
. The implementation would simply be:
- (void) setFrame:(CGRect)newRect {
[super setFrame:newRect];
}
Upvotes: 2