I have certain validation functions in a javascript file. I want to use them in my IOS app.
NSString *path = [[NSBundle mainBundle] pathForResource:@"validate" ofType:@"js"];
NSError* error;
NSString* validate = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:&error];
I have a function keyDetails() in validate.js
How do i create an instance of that function and call it.