derdida
derdida

Reputation: 14904

Connection with Interface Builder, but UITableView is nil?

I have a little strange problem, that i am unable to reload a UITableView in a Popover. I have a function which i call from my parent View Controller but it always crashes with the error ... found a nil value - but how can be my UITableView be nil?

Connection IB

So with this code shown in my screenshot i'll always get "its nil" in my console. But why?

Upvotes: 0

Views: 160

Answers (2)

sfeuerstein
sfeuerstein

Reputation: 913

In viewWillAppear the view isn't visible yet, so if you reload your data there then it should work. I would try moving the call to reload the table to viewWillAppear to see if that solves the issue or not

Upvotes: 1

sbrsantanu
sbrsantanu

Reputation: 137

enter image description here

It's have to be Files owner, don't why it's showing File download handler view controller. make it fileowner, it will work

Upvotes: 0

Related Questions