TableViewDatasource and delegate not called when tableview is inside collectionview cell
问题 I have placed a uitableview inside collectionviewcell and have coded as below in the collectionviewcell class.But the datasource and delegate methods are not being called can any help me out to fix the issue - (id)initWithCoder:(NSCoder *)aDecoder { if (self = [super initWithCoder:aDecoder]) { arrayMenuAlerts=[NSMutableArray arrayWithObjects:@"Suri",@"John",@"Phillip",@"Sachin", nil]; [self.contentView addSubview:tableView]; tableView.dataSource=self; tableView.delegate=self; } return self; }