-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
My source:
`
*.h file
import <Foundation/Foundation.h>
import "Presenter.h"
import "RubricMenuView.h"
import <BloodMagic/Lazy.h>
import "ProductCategoryIteractor.h"
@protocol RubricMenuView;
@interface RubricMenuPresenter : NSObject <Presenter, BMLazy>
@Property (nonatomic, strong, bm_lazy) ProductCategoryIteractor* productCategoryIteractor;
- (instancetype) initWith: (id) view;
*.m file
import "RubricMenuPresenter.h"
@interface RubricMenuPresenter()
@Property (weak) id view;
@implementation RubricMenuPresenter
@dynamic productCategoryIteractor;
pragma mark - RubricMenuPresenter methods
- (instancetype) initWith: (id) view {
self = [super init];
if (self) {
self.view = view;
}
return self;
}
pragma mark - Presenter methods
- (void) viewDidLoad {
ProductCategoryIteractor* sdf = self.productCategoryIteractor;
[[[sdf execute]
subscribeOn: [RACScheduler mainThreadScheduler]] subscribeNext:^(id x) {
NSLog(@"Log result");
} error:^(NSError *error) {
NSLog(@"Log error");
}];
}
`
When called line with source "ProductCategoryIteractor* sdf = self.productCategoryIteractor;"
application is crashing with error "*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RubricMenuPresenter productCategoryIteractor]: unrecognized selector sent to instance 0x7fdfd51985a0'"
What I am doing wrong?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels