Refactored to make easier to use in projects.
In iOS 7, if user touches down, drags her finger away from the segmented control, then lifts up, there is no longer a false positive.