Comments (1)
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.
On Sep 22, 2016, at 2:39 AM, Sagar C [email protected] wrote:
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.3Here is my code...
in ViewController.h file
#import
#import "HeartRateDetectionModel.h"
@interface ViewController : UIViewController
@Property (nonatomic, strong) HeartRateDetectionModel *hr;
@EnDin ViewController.m file
#import "ViewController.h"
#import "HeartRateDetectionModel.h"@interface ViewController ()
@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....?—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from atheartrate.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atheartrate.