Cocoapodsframework cannot be inherited when swift uses CocoaPods to import the third-party library's framework parent class to the subclass.

Source: Internet
Author: User

Cocoapodsframework cannot be inherited when swift uses CocoaPods to import the third-party library's framework parent class to the subclass.

When I encountered such a problem in today's development project, I used cocoapods to import the third-party library to BaseController, And the other controllers inherited from basecontroller, however, classes that cannot be indexed to the third-party library in the inherited subclass can only call the category method of UIKit.

Subclass

Parent class

 

The current solution is to re-import the header file of the third-party library in the subclass.

 

Official documents

Access Control

PS: I have not studied why such a problem occurs. I hope you can tell me the reason when you see or know the principle.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.