简体   繁体   中英

iOS - Using UIMonthYearPicker with Interface Builder

I need to use third party library called UIMonthYearPicker in my project.

I use the above library in my MKNewpary view controller. I implemented the UIPickerView in the The .xib of the MKNewparty view controller.

My MKNewpary.h

@property(retain,nonautomic)IBOUTLET UImonthYearPicker*picker;

How do I make sure this picker uses the UIMonthYearPicker class?

界面生成器

As per the instructions on the GitHub project page, you need to change the class of your UIPickerView to UIMonthYearPicker . Change the class in Interface Builder by navigating to the Utilities view -> Identity Inspector, and changing Class under Custom Class to UIMonthYearPicker .

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM