This is my Swift File
@objcMembers class MyVC: NSObject {
var myArray = [String]()
...
This is my ServiceControlVC.m Objective-C File
...
MyVC *vc = [MyVC alloc];
NSMutableArray *items = [NSMutableArray new];
items = weakSelf.myModel.myModelArray;
vc.myArray = items; // xxx this is the error point my compiler get crazy
...
I am getting this error:
Property 'myArray' not found on object of type 'MyVC *'
Other properties seems okay, there is something missing point about object type or pointer for this arrray( my guess )
What should I do get rid of this compile error ? Can you tell me why this casting problems happens and how I define my MyVC swift file property :
var myArray = [String]() is a bad approach for this case ? Thanks