You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
For the most cases I'm able to open PDF with forms, but for a special file the app is crashing because of
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM objectForKeyedSubscript:]: unrecognized selector sent to instance
If find out that the ILPDFFormContainer is the reason for that. Especially in the populateNameTreeNode: method you expect a NSMutableDictionary, but in my case here it is an array:
...
NSMutableDictionary *dict = node[base]; // here in the dict var there comes an array and not dictionary, the base is "1" as STRING
if (dict == nil) {
dict = [NSMutableDictionary dictionary];
node[base] = dict;
}
[self populateNameTreeNode:dict withComponents:[components subarrayWithRange:NSMakeRange(1, [components count]-1)] final:final];
My bad solution was it to check for the class, and in case that it is not a dictionary I don't populate:
For the most cases I'm able to open PDF with forms, but for a special file the app is crashing because of
If find out that the ILPDFFormContainer is the reason for that. Especially in the populateNameTreeNode: method you expect a NSMutableDictionary, but in my case here it is an array:
My bad solution was it to check for the class, and in case that it is not a dictionary I don't populate:
The text was updated successfully, but these errors were encountered: