Regarding SVSegmentedControl customized with UIControl, I would like to use it after adjusting the size on Storyborad, but I can't find a way.
Below is the SVSegmentedControl link.
https://github.com/samvermette/SVSegmentedControl
Typically, you arrange and instantiate items.
SVSegmentedControl*navSC=[[SVSegmentedControl alloc] initWithSectionTitle: @[@"First", @"Second", @"Third" ]];
IBDesignable
, IBinspectable
may be a little better.
Tried creating a custom view that can be graded using @IBDesignable and @IBInspectable
In Objective-C, write without @
.Similar to IBOutlet and IBAction.
IBDesignable reflects the drawing on the Storyboard only if it is static within the drawRect method.
© 2024 OneMinuteCode. All rights reserved.