/ Published in: Objective C
how to add sub view add a specific location
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
myViewController = [[MyViewController alloc] initWithNibName:@"MyView" bundle:nil]; myViewController.view.frame = CGRectMake(0, 100, myViewController.view.frame.size.width, myViewController.view.frame.size.height); [mainCanvas addSubview: myViewController.view];