diff --git a/iOS/NativeControls/NativeControls.m b/iOS/NativeControls/NativeControls.m index 5bce3907..7399bcfb 100644 --- a/iOS/NativeControls/NativeControls.m +++ b/iOS/NativeControls/NativeControls.m @@ -492,7 +492,7 @@ - (void)createToolBarItem:(NSArray*)arguments withDict:(NSDictionary*)options NSString *title = [arguments objectAtIndex:1]; NSString *imageName = nil; - if (arguments.count >= 2) + if (arguments.count > 2) { imageName = [arguments objectAtIndex:2]; }