Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ios): documentViewer setAnnotation method causing a crash #12496

Merged
merged 10 commits into from
Mar 17, 2021
6 changes: 6 additions & 0 deletions apidoc/Titanium/UI/iOS/DocumentViewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ properties:
the API summary.
type: String

- name: annotation
summary: Custom property list information for the target file.
description: |
Use this property to pass information about the document type to the app responsible for opening it.
type: [Dictionary, Array, String, Number, Date]

methods:
- name: hide
summary: Dismisses the document viewer.
Expand Down
2 changes: 1 addition & 1 deletion iphone/Classes/TiUIiOSDocumentViewerProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ - (NSString *)apiName

- (void)setAnnotation:(id)args
{
[self controller].annotation = [args objectAtIndex:0];
[self controller].annotation = args;
}

- (void)show:(id)args
Expand Down