I am creating a “favorite pages” menu in my tableview application, where users can save their favorite web pages and then navigate to them easier through the menu.
The program saves the name of the page and the URL for each favorite page slot in the settings app. The default URL is “clear” meaning there is no URL yet (i.e. the favorite slot is not in use).
When a user clicks on a tableview cell for their desired favorite page, the view switches to a UIWebview and the URL is loaded. I made it so that if the URL isEqualToString @"clear", the UIWebView will not load display and “nothing” will happen.
But when the user clicks on the tableview cell with a URL set to “clear”, the cell is still highlighted in blue. This makes it appear to the user that the tableview cell is not cleared. Is there anyway to check if the URL isEqualToString @"clear" and stop the cell from highlighting blue before it does?
Thanks.
EDIT: This is a better way (doing it in willSelect… is too late on the first tap).
In didSelectCellForIndexPath…