Note that there are some explanatory texts on larger screens.

plurals
  1. POUnrecognized selector sent to instance when adding a UITableView as SubView
    primarykey
    data
    text
    <p>When i've created a UITableView in the code en add it as a subview in the code it is all working fine. There is green tableview visible. Example of the code i've created for that.</p> <pre><code>- (void)getOverviewTable { // Adding the TableView OverviewTableViewController *overviewTableViewController = [[OverviewTableViewController alloc] init]; UITableView *overviewTableView = [[UITableView alloc] initWithFrame:(CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height))]; // Set the datasource and delegete will come here [overviewTableView setBackgroundColor:[UIColor greenColor]]; [self.view addSubview:overviewTableView]; } </code></pre> <p>But after i've set the DataSource and the Delegete for the TableView i will receive a warning. The code in total for reaching it is as follows:</p> <pre><code>- (void)getOverviewTable { // Adding the TableView OverviewTableViewController *overviewTableViewController = [[OverviewTableViewController alloc] init]; UITableView *overviewTableView = [[UITableView alloc] initWithFrame:(CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height))]; // Set the datasource and delegete will come here [overviewTableView setDataSource:overviewTableViewController]; [overviewTableView setDelegate:overviewTableViewController]; [overviewTableView setBackgroundColor:[UIColor greenColor]]; [self.view addSubview:overviewTableView]; } </code></pre> <p>The most of the time it is just an EXC_BAD_ACCESS error, but sometimes it shows me the following error.</p> <pre><code>[UITransitionView numberOfRowsInSection:]: unrecognized selector sent to instance </code></pre> <p>The 'OverViewTableViewController' is replaced by just an empty UITableViewController class but the error is still showing up.</p> <p>(Point of the application is an fullscreen takeover which has to be swiped away to see the tableview underneath it)</p> <p>Edit:</p> <p>The function is called from the viewDidLoad function</p> <pre><code>- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. [self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"bg.jpg"]]]; // Setting the home takeover [self setHomeTakeOver]; // Wait one seconde before we load the tableview [self getOverviewTable]; //[self performSelector:@selector(getOverviewTable) withObject:nil afterDelay:1.0]; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload