Add tableView to a custom View

38 views Asked by At

I'm sure this might be fairly easy but I'm unable to do it. I have a custom View xib customView.xib

and on basis of either segment selection I want to show one of my two tableViews. When tableView xib is loaded with

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

                                                        options:nil]firstObject];

tableViewDataSource and Delegate methods are called on CustomView not on UserProfileView.

Am I missing something here ?

0

There are 0 answers