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
(void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
-(void)heartRateStart
{
NSLog(@"started!");
}
when I didn't wrote the method "heartRateStart" it was crashing saying "unrecognized selector sent to instance"
now if I do so,
It says
"-[ViewController heartRateUpdate:atTime:]: unrecognized selector sent to instance"
am I following correct guidelines for implementation.
Every time when I integrate your files in any app, do I need to declare all these delegates methods and call to them externally....?
The text was updated successfully, but these errors were encountered:
Yes, you will need to implement the methods in the class you have assigned as the delegate. Implementing the heartRateUpdate method is what returns the updated heart rate to you.
(void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
-(void)heartRateStart
{
NSLog(@"started!");
}
when I didn't wrote the method "heartRateStart" it was crashing saying "unrecognized selector sent to instance"
now if I do so,
It says
"-[ViewController heartRateUpdate:atTime:]: unrecognized selector sent to instance"
am I following correct guidelines for implementation.
Every time when I integrate your files in any app, do I need to declare all these delegates methods and call to them externally....?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Hi,
I am new to this thing,
I get your library and checked the code.
It is written awesome.
I am facing issue to integrate into my code.
I am using Xcode 7.3 and checking on iOS 9.3
Here is my code...
in ViewController.h file
import <UIKit/UIKit.h>
import "HeartRateDetectionModel.h"
@interface ViewController : UIViewController
@Property (nonatomic, strong) HeartRateDetectionModel *hr;
@EnD
in ViewController.m file
import "ViewController.h"
import "HeartRateDetectionModel.h"
@interface ViewController ()
@EnD
@implementation ViewController
@synthesize hr;
(void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
self.hr = [[HeartRateDetectionModel alloc] init];
self.hr.delegate = self;
[self.hr startDetection];
}
(void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
-(void)heartRateStart
{
NSLog(@"started!");
}
when I didn't wrote the method "heartRateStart" it was crashing saying "unrecognized selector sent to instance"
now if I do so,
It says
"-[ViewController heartRateUpdate:atTime:]: unrecognized selector sent to instance"
am I following correct guidelines for implementation.
Every time when I integrate your files in any app, do I need to declare all these delegates methods and call to them externally....?
The text was updated successfully, but these errors were encountered: