Want to use SVSegmentedControl on Storyboard

Asked 5 months ago, Updated 5 months ago, 23 views

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.

Typically, you arrange and instantiate items.

SVSegmentedControl*navSC=[[SVSegmentedControl alloc] initWithSectionTitle: @[@"First", @"Second", @"Third" ]];

ios objective-c storyboard cocoapods

2022-09-30 11:18

1 Answers

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.

2022-09-30 11:18

If you have any answers or tips

© 2023 OneMinuteCode. All rights reserved.