将tableView添加到自定义视图

时间:2015-06-18 13:07:03

标签: objective-c uitableview xib custom-view

我确定这可能相当容易,但我无法做到。我有一个自定义View xib customView.xib

并根据段选择我想显示我的两个tableViews之一。当tableView xib加载

    _userProfileView = [[[NSBundle mainBundle] loadNibNamed:@"UserProfile" owner:_userProfileView

                                                        options:nil]firstObject];

tableViewDataSource和Delegate方法在CustomView上调用,而不是在UserProfileView上调用。

我在这里错过了什么吗?

0 个答案:

没有答案
相关问题