在我的 UIViewController 中,我添加了一个包含 uitableview 的子视图。
MSEmployeeServiceController *empServices = [[MSEmployeeServiceController alloc]initWithNibName:@"MSEmployeeServiceController" bundle:nil];
[self.totScroll addSubview:empServices.view];
MSEmployeeServiceController
类包含一个UITableView
. 当我尝试添加视图应用程序时崩溃并出现以下错误:
-[MSEmployeeServiceController numberOfSectionsInTableView:]: message sent to deallocated instance 0x8684030
我已经在视图中设置了数据源和委托连接。请帮我。