Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Disables UITableViewCell from Accidentally being selected. #1

Merged
merged 1 commit into from

2 participants

@sonnyfazio

In the previous version, if a user accidentally tapped the UITableViewCell in an area not containing the a UITextField, the cell would become highlighted. This change prevents that from happening and confusing the user.

@cruffenach cruffenach merged commit 5c043ea into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 0 deletions.
  1. +3 −0  Classes/RootViewController.m
View
3  Classes/RootViewController.m
@@ -75,6 +75,9 @@ - (void)configureCell:(ELCTextfieldCell *)cell atIndexPath:(NSIndexPath *)indexP
cell.rightTextField.placeholder = [self.placeholders objectAtIndex:indexPath.row];
cell.indexPath = indexPath;
cell.delegate = self;
+ //Disables UITableViewCell from accidentally becoming selected.
+ cell.selectionStyle = UITableViewCellEditingStyleNone;
+
if(indexPath.row == 3) {
Something went wrong with that request. Please try again.