ios - Why won't Objective C classes autocomplete in swift? (updated) -
i importing objective c classes in bridging header file swift:
bridging header
#import "mycustomclass.h"
in swift class, trying use code:
var x = mycustomclass() x.myfunmethod()
however, before run/build "use of unresolved identifier" errors @ above 2 lines. furthermore, cannot use autocomplete type out x.myfunmethod()
. once run/build, errors go away , app runs normal.
Comments
Post a Comment