You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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;
@EnD
*.m file
import "RubricMenuPresenter.h"
@interface RubricMenuPresenter()
@Property (weak) id view;
@EnD
@implementation RubricMenuPresenter
@dynamic productCategoryIteractor;
pragma mark - RubricMenuPresenter methods
self = [super init];
if (self) {
self.view = view;
}
return self;
}
pragma mark - Presenter methods
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?
The text was updated successfully, but these errors were encountered: