gitawego / cordova-screenshot

screenshot plugin for cordova/phonegap
Other
211 stars 168 forks source link

fixed broken ios files #11

Closed mikowals closed 10 years ago

mikowals commented 10 years ago

Fixed missing '-' in the most recent screenshot.m file. Tough to see this change on github because it shows the deleted line with the minus sign to show its removal . Without the dash, the code will not build and throws "expected identifier or '(' ".

Also added a 3rd argument in the .js file to match the new .m file. Otherwise there is an index out of range error ( specifically "webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: -[__NSCFArray objectAtIndex:]: index (2) beyond bounds (2)") caused by referencing an argument that doesn't exist.

Also added '*' in front of a couple of variable declarations. Without them I got an error during build saying "Semanitic issue Interface type cannot be statically allocated".