Jonas Eschmann
Jonas Eschmann

Reputation: 457

WatchKit Table flickering when updated

I am currently working on a watchkit app and ran into a problem with a flickering table.

The situation is as follows: With the storyboard tool, I created a table containing two row types. The concept is, that when the data for the table is being downloaded, there is only one row of the first type which will use the whole space to indicate, that data is being downloaded. When the data arrives the second row type is used to display the data.

The problem is, that the table is somehow flickering, while it is being updated with the data. I was able to fix this problem by removing the download indication message und using only the one row type for data.

My question is, if someone did run into a similar problem or if there is any better way/pattern to display this kind of information messages, which show the user whats going on when he is using the app.

Upvotes: 4

Views: 396

Answers (2)

lostAtSeaJoshua
lostAtSeaJoshua

Reputation: 1755

The WatchKit Table will flicker when reloading when a visible cell is different size than the other cells. Make sure they are all the same height and width and you will not have a flicker.

Upvotes: 1

bgilham
bgilham

Reputation: 5939

The way I did it was to put a group above my table that took up the entire screen with a loading animation inside it. I then hide/show the groups as needed.

Upvotes: 0

Related Questions