Add UISegmentedControl programmatically and detect the change of state
We start with add our UISegmentedControl programmatically to our view: [crayon-6003e1298e03d317440266/] Then having added the segment, with the method valueChanged: inserted into addTarget, we can detect the change of state buttons, we can use this method:...