There are two possibilities with your issue.
- Just set a break point on
initWithNibName
and check if this method is triggering . I feel like this method is not getting called somehow. So you array is not getting set. - If you are able not find out why
initWithNibName
is not getting called then you can shift your code intoviewDidLoad
method.
Just try out these things probably you will catch issue.