Search code examples
objective-ciosipaduisplitviewcontrollercell

SplitViewController for iPad behaviors


I am working with the UISplitViewController in iPad application. Currently, I found two issues: 1. I can't modify the width of the master view 2. I try to use the customized cell in the master view, but it seems not possible to adjust the width and height of the cell.

Do you have any ideas on the two issues regarding to the standard UISplitViewController?

Thanks, Mike


Solution

  • 1) You cannot change the size of detail view. Please check the following link, From that link you will get alot of information: Change the width of Master in UISplitViewController

    2) Use the heightForRowAtIndex delegate method. return 60 from that method

    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
     {
       return 60.0;
     }