lundi 7 juillet 2014

Modal View controller not displaying at Center


Vote count:

0




I am working on an ipad app where i have to display a table view as form sheet, when i click a cell in the table the form should resize


I wrote this code



-(void)viewWillAppear:(BOOL)animated
{
self.view.superview.frame = CGRectMake(0, 0, 290, 620);
}


and when a cell is clicked i wrote self.view.superview.bounds = CGRectMake(0, 0, 600, 620); in did select row at index path.... both these times the form sheet is not displayed in the center. Where am i going wrong. Is there any other method to implement this behaviour



asked 2 mins ago






Aucun commentaire:

Enregistrer un commentaire