我需要使用名为 UIMonthYearPicker 的第三方库在我的项目中。
我在我的 MKNewpary View Controller 中使用了上述库。 我在 MKNewparty View Controller 的 .xib 中实现了 UIPickerView。
我的 MKNewpary.h
@property(retain,nonautomic)IBOUTLET UImonthYearPicker*picker;
如何确保此选择器使用 UIMonthYearPicker 类?
最佳答案
按照 GitHub project page, 上的说明您需要将 UIPickerView
的类更改为 UIMonthYearPicker
。通过导航到 Utilities View -> Identity Inspector,并将 Custom Class 下的 Class 更改为 UIMonthYearPicker
,更改 Interface Builder 中的类。
关于iOS - 将 UIMonthYearPicker 与 Interface Builder 结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26807492/