Git Product home page Git Product logo

Comments (1)

lehn0058 avatar lehn0058 commented on July 28, 2024

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.3

Here is my code...

in ViewController.h file

#import
#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....?


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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.