I have a subclass of UIViewController written in Swift called BaseViewController. I now have an "old" view controller called "ViewController1" written in Objective-C, which I want to inherit from "BaseViewController". Following other tips, I imported the Project-Swift.h header file.
My problem arises when subclasses like this
#import <UIKit/UIKit.h> #import "MyProject-Swift.h" @interface ViewController1 : BaseViewController @end
Mistake:
Cannot subclass a class with the objc_subclassing-limited attribute
and it appears on the @interface line ...
ios objective-c swift
apotry Jun 13 '14 at 11:26 2014-06-13 11:26
source share