I have a UITableView
that is populated with content that can be tagged/bookmarked by a user. My app successfully sends the bookmark info to a server-side database when content is bookmarked. I'm trying to figure the most efficient way to display a bookmarked image in the respective cell if the content has already been bookmarked by the user.
For example, a user taps a cell's bookmark and the bookmark image displays a different image to verify the bookmark. The bookmark info is sent to the database. This already works
Here's where I need help...
When the user opens the app again, the UITableView
is re-populated with data. If the cell contains content that has been bookmarked, I need to display the bookmarked image in the cell. Right now, I have a database query in ViewDidLoad
that pulls the user's bookmarks. The only implementation I can think of is searching through the query data in cellForRowAtIndexPath
. However, I know this is going to affect my scrolling performance. Is there a better way to do this?