Add subview add a specific position


/ Published in: Objective C
Save to your folder(s)

how to add sub view add a specific location


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.