-1

I want to get the view frame. Which is done by this line:

self.view.frame

but when I do this in iPad it is equal to the whole view. but I just want the master part of the split view.

Fattaneh Talebi
  • 727
  • 1
  • 16
  • 42

1 Answers1

0

The frame of the master view controller in a split view can be accessed as

UIViewController* master = splitViewController.viewControllers[0];
CGRect frame = master.view.frame;
rmaddy
  • 314,917
  • 42
  • 532
  • 579
Gereon
  • 17,258
  • 4
  • 42
  • 73