Any way to pre-load a tableview/scrollview in a new Storyboard scene being transitioned to?

Hi, 

I have a cascading Storyboard scenes setup. First scene presents a list of categories, next one presents a list of items that belong in the chosen category. Its all working nice so I wanted to spruce it up a little and introduced effect = “fromRight” into the transition from first scene to the second. Now my first scene is replaced by the next with a neat swipe. So far so good! 

The problem is that the list view scene swipes in without any data displayed on it. Once the swipe action is finished only then the scrollview and the tableview inside it come up and show the list. Its not very visually pleasing. 

I looked far and between in the storyboard options but could not find a relevant option that might help me. I was hoping to get the data load happen while the screen slide occurs so that as the new scene comes in it does so with the list of items displayed. 

Any thoughts, suggestions will be most appreciated. Thank you! 

Kerem

are you loading the tableView in the createScene() function?

Hi Rob, 

I’m using enterScene() to populate the list. Should I do this elsewhere? Until I tried to introduce this visual effect I had no issues with the functionality. All works well. If there is a way to get it to work with the slide all the better. If not I can live with no slide. 

Thanks for your help. Regards,

Kerem

Hi Rob, sorry to bug you. Did you have a suggestion for me on this question? I really appreciate your help. Thanks much!!!

Use createScene to do any preloading that you need to preform. That should get you the behavior you are expecting.

Any thing you do in the enterScene() function only happens after the scene is fully on screen.  If you wait until then to insert the rows into the table, you’re going to get a blank tableView until the inserts happen and all the onRowRender’s trigger.  If you do the inserts in createScene() then the tableView should be fully populated before it transitions onto the screen.

Yup. This did the trick. Can’t believe it was right under my nose all this time. Thanks guys!

are you loading the tableView in the createScene() function?

Hi Rob, 

I’m using enterScene() to populate the list. Should I do this elsewhere? Until I tried to introduce this visual effect I had no issues with the functionality. All works well. If there is a way to get it to work with the slide all the better. If not I can live with no slide. 

Thanks for your help. Regards,

Kerem

Hi Rob, sorry to bug you. Did you have a suggestion for me on this question? I really appreciate your help. Thanks much!!!

Use createScene to do any preloading that you need to preform. That should get you the behavior you are expecting.

Any thing you do in the enterScene() function only happens after the scene is fully on screen.  If you wait until then to insert the rows into the table, you’re going to get a blank tableView until the inserts happen and all the onRowRender’s trigger.  If you do the inserts in createScene() then the tableView should be fully populated before it transitions onto the screen.

Yup. This did the trick. Can’t believe it was right under my nose all this time. Thanks guys!