initialize array after view is loaded. this could also be done in init m...

initialize array after view is loaded. this could also be done in init method but the problem you are facing is that initWithNibName doesn’t get called when you are using storyboard.