HWDownSelectedView icon indicating copy to clipboard operation
HWDownSelectedView copied to clipboard

cocoapods导入的库不能使用

Open DeforeChen opened this issue 7 years ago • 2 comments

我用cocoapods导入的库,storyboard拖曳添加控件之后,

@property (weak, nonatomic) IBOutlet HWDownSelectedView *OptionView;

定义的这个OptionView的类始终都是UIView,不能变为HWDownSelectedView 但是如果我直接把工程中的HWDownSelectedView添加进去,就可以,这是为啥

DeforeChen avatar Jun 13 '17 12:06 DeforeChen

你在storyboard或者xib中拖拽之后,要改变他的类为HWDownSelectedView。就可以了

CCat00 avatar Jun 14 '17 03:06 CCat00

我就是按照storyboard中拖曳添加后修改他的类操作做的。实际情况就是用cocoapods导入后无法转化类别。 但是用直接手动添加代码的就可以

DeforeChen avatar Jun 16 '17 03:06 DeforeChen