My tip percentage slider is a Segmented Control, with options ranging from 0% to 20% and then 'Any' is the custom value. When the user selects the 'Any' value, I want to be able to have a TextField appear below it, and then disappear when the user selects a value other than 'Any'.
if (isTipPercentageCustom) {
// Show the Text Field
// Perform calculation, etc.
} else {
// Hide Text Field
}
I want to create it once, and then just keep showing and hiding it since I have to keep it in memory until the app closes.
Is this even possible with a Segmented Control?
Does that clarify it a little bit?
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: