Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Specifying UISegmentedControlNoSegment to UISegmentedControl's selectedSegmentIndex has no Effect on iOS 13

The solutions given in the other answers are overblown. There is a much simpler workaround: just call setNeedsLayout on the segmented control.

self.seg.selectedSegmentIndex = UISegmentedControl.noSegment
self.seg.setNeedsLayout()

Tags:

Objective C

Uisegmentedcontrol

Ios13

Related

Where is Visual Studio's git.exe location? map vs switchMap in RxJS Since flutter 1.9 : how to run flutter app in a browser ? Flutter run -d chrome not working No 'Remove Widget' option for flutter with Android Studio in Windows 10 To close the app from particular page on single tap of hardware back button Android Studio debugger console displays "Failed to connect port" How to update azure-cli on Windows? What's the usage of three dots (...) in dart List? Functional Equivalence in Java Language change issue after updating to androidx.appcompat:appcompat:1.1.0 JavaScript - Return differences between two Objects? Unable to swipe to delete with tableview using diffable data source in iOS 13

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy