diff --git a/ios/TiLivequeryQueryProxy.m b/ios/TiLivequeryQueryProxy.m index 8505f72..7c14e70 100644 --- a/ios/TiLivequeryQueryProxy.m +++ b/ios/TiLivequeryQueryProxy.m @@ -25,8 +25,11 @@ - (id)_initWithPageContext:(id)context args:(NSArray *)args NSDictionary *params = [args objectAtIndex:0]; NSString *className = [params objectForKey:@"className"]; NSString *predicate = [params objectForKey:@"predicate"]; + NSString *predicateArguments = [params objectForKey:@"predicateArguments"]; + + NSString *predicateFormat = [NSString stringWithFormat:predicate, predicateArguments]; - _query = [PFQuery queryWithClassName:className predicate:predicate ? [NSPredicate predicateWithFormat:predicate] : nil]; + _query = [PFQuery queryWithClassName:className predicate:predicate ? [NSPredicate predicateWithFormat:predicateFormat] : nil]; } return self; diff --git a/ios/manifest b/ios/manifest index 6f082a7..10634e2 100644 --- a/ios/manifest +++ b/ios/manifest @@ -2,7 +2,7 @@ # this is your module manifest and used by Titanium # during compilation, packaging, distribution, etc. # -version: 1.0.0 +version: 1.0.1 apiversion: 2 architectures: armv7 arm64 i386 x86_64 description: titanium-parse-live-query