Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @IBAction func Register(_ sender: Any) {
- print("successfully tapped")
- }
- @IBAction func switchViews(_ sender: UISegmentedControl) {
- if sender.selectedSegmentIndex == 0 {
- firstView.alpha = 1
- secondView.alpha = 0
- thirdView.alpha = 0
- } else if sender.selectedSegmentIndex == 1 {
- firstView.alpha = 0
- secondView.alpha = 1
- thirdView.alpha = 0
- } else if sender.selectedSegmentIndex == 2 {
- firstView.alpha = 0
- secondView.alpha = 0
- thirdView.alpha = 1
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement