Posted By

magickaito on 03/29/11



Versions (?)

Add subview add a specific position

 / Published in: Objective C

how to add sub view add a specific location

  1. myViewController = [[MyViewController alloc] initWithNibName:@"MyView" bundle:nil];
  2. myViewController.view.frame = CGRectMake(0, 100, myViewController.view.frame.size.width, myViewController.view.frame.size.height);
  3. [mainCanvas addSubview: myViewController.view];

Report this snippet  

You need to login to post a comment.