更新时间:2022-06-18 10:13:14
以下是解决方案:
1)在头文件示例中手动输入IBOutlet :
@property (strong, nonatomic) IBOutlet ProgressBarElementView *targetProgressElement;
2)将图钉从代码拖动到文档轮廓区域中的元素
2) Drag the pin from the code to the element in document outline zone
如何将ibOutlet从子视图链接到情节提要Xcode中的自定义UIView类