更新时间:2023-12-02 18:33:10
Adam,请尝试以下操作:
Adam, try this:
MyViewController *myViewController=[MyViewController alloc] initWithNib:@"IncidentsViewController"];
[myView addSubView:myViewController.view];
[myViewController release];
只需确保XIB具有适合您的UIView的大小即可.
Just make sure after that the XIB has the right size for your UIView.