I have created a multi-tab page which on click changes view.
One tab includes an order form but I already have a separate order form in my storyboard so I tried to load that form inside the order tab view which I did by coding.
OrderViewController *we = [self.storyboard instantiateViewControllerWithIdentifier:@"OrderViewController"];
we.view.frame = CGRectMake(-8,10, 320, 500);
we.calc.frame = CGRectMake(0,1, 320, 45);
[order addSubview:we.view];
[self.view addSubview:order];
But when I click any button or item on the order form it goes to warning ... dont get it why any help.
[we retain];
因为,(如果我错了,请纠正我)一段时间后,VC将被释放(自动释放)。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.