Initializes and returns a segmented control with segments having the given titles or images.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
UISegmented object or
nil if there was a problem in initializing the object.
The returned segmented control is automatically sized to fit its content within the width of its superview.