{ "id": "63142", "key": "TIMOB-2510", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11361", "description": "Mobile 1.8.0 M08", "name": "Sprint 2011-29", "archived": true, "released": true, "releaseDate": "2011-07-25" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-03T15:56:42.000+0000", "created": "2011-04-15T03:21:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-01-03T12:07:02.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

UIDocumentInteractionController is defined as\r\ncreateDocumentViewer in \r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/iphone/...,\r\nbut is undocumented despite other methods in the same class being\r\ndocumented.

\r\n

It would be awesome if someone could write rudimentary docs for\r\nthis, as for non-objc users figuring out the\r\njs->titanium->objc stuff is kind of hard (I'm trying to\r\nfigure it out from the apple docs @ \r\nhttp://developer.apple.com/library/ios/#documentation/iPhone/Concep...\r\n, but its tricky because I don't do this normally)

{html}", "attachment": [], "flagged": false, "summary": "iOS: createDocumentViewer (UIDocumentInteractionController) is defined but undocumented", "creator": { "name": "william(atsqlcoders)", "key": "william(atsqlcoders)", "displayName": "william (at sqlcoders)", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "william(atsqlcoders)", "key": "william(atsqlcoders)", "displayName": "william (at sqlcoders)", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128668", "author": { "name": "william(atsqlcoders)", "key": "william(atsqlcoders)", "displayName": "william (at sqlcoders)", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I've managed to cobble together a horrible working proof at\nhttp://pastie.org/1352776\nwhich at least confirms that the createDocumentViewer function does\nwork, and can launch things.

\n

More trawling through objc to go, but I think I can get\nsomething working now.

\n

I don't know if appcelerator accepts outside doc/code samples,\nbut if I can I'll attach a proper documented example later and see\nif someone wants to import it.

{html}", "updateAuthor": { "name": "william(atsqlcoders)", "key": "william(atsqlcoders)", "displayName": "william (at sqlcoders)", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:21:36.000+0000", "updated": "2011-04-15T03:21:36.000+0000" }, { "id": "140633", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Just a comment... Could we get some Docs on this and a working sample code? The code provided by William is not working.\r\n\r\nThere is a sample code from Apple (in Obj-C) right here:\r\n\r\nhttp://developer.apple.com/library/ios/#samplecode/DocInteraction/Listings/ReadMe_txt.html", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-06-06T09:49:10.000+0000", "updated": "2011-06-06T09:49:10.000+0000" }, { "id": "147046", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "As per customer request, this goes along with:\r\n\r\nhttp://developer.appcelerator.com/question/71551/feature-req-support-for-opening-files-in-other-apps-uidocumentinteractioncontroller", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-06-07T08:48:07.000+0000", "updated": "2011-06-07T08:48:07.000+0000" }, { "id": "158491", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "One more customer request for this info.\r\nAssociated Helpdesk Ticket: http://support-admin.appcelerator.com/display/APP-851388\r\nIncreasing the priority to High", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-05T10:06:32.000+0000", "updated": "2011-07-05T10:06:32.000+0000" }, { "id": "159187", "author": { "name": "jenglish", "key": "jenglish", "displayName": "Jeff English", "active": true, "timeZone": "America/Chicago" }, "body": "While not the same feature, note that we now have a QuickLook module that surfaces the iOS QuickLook API for displaying documents in a view.", "updateAuthor": { "name": "jenglish", "key": "jenglish", "displayName": "Jeff English", "active": true, "timeZone": "America/Chicago" }, "created": "2011-07-11T10:24:52.000+0000", "updated": "2011-07-11T10:24:52.000+0000" }, { "id": "160485", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Forgot to resolve issue.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-25T10:51:26.000+0000", "updated": "2011-07-25T10:51:26.000+0000" }, { "id": "175094", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sample code: must include a pdf \"Example.pdf\"\r\n{code}\r\n//-----------example--------\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n//creating the window\r\nvar win1 = Titanium.UI.createWindow({\r\ntitle:'win 1',\r\nbackgroundColor:'#fff'\r\n});\r\n\r\n//add window - navigation bar\r\nvar modalWin = Ti.UI.createWindow();\r\nvar navmodal = Ti.UI.iPhone.createNavigationGroup({\r\nwindow:modalWin\r\n});\r\nwin1.add(navmodal);\r\n\r\n//button for the nav bar\r\nvar b2t = Titanium.UI.createButton({\r\ntitle:'Launch'\r\n });\r\nmodalWin.RightNavButton = b2t;\r\n\r\n//button for the window\r\nvar b1t = Titanium.UI.createButton({\r\ntitle:'Launch',\r\nheight:40,\r\nwidth:200,\r\ntop:270\r\n});\r\nwin1.add(b1t);\r\n\r\n//Setting up the documentviewer\r\nz = Ti.UI.iPad.createDocumentViewer({url:'Example.pdf'});\r\n\r\n//documentviewer with animation set on and a quicklook view poping up next to a view\r\nb1t.addEventListener('click', function(){z.show({animated:false,view:b2t});});\r\n\r\n//documentviewer with animation set off\r\nb2t.addEventListener('click', function(){z.show();});\r\nwin1.open();\r\n{code}\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-06T16:22:08.000+0000", "updated": "2011-12-06T16:22:08.000+0000" }, { "id": "175098", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified functioning with SDK 1.8.0.1.v20111205164258 on iPad 2 (4.3.6) and iPad 2 (4.3.5). Also verified documentation is in place.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-06T16:23:40.000+0000", "updated": "2011-12-06T16:23:40.000+0000" }, { "id": "177902", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to update labels", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-03T15:56:28.000+0000", "updated": "2012-01-03T15:56:28.000+0000" }, { "id": "233048", "author": { "name": "tinjaw", "key": "tinjaw", "displayName": "Chaim Krause", "active": true, "timeZone": "America/Chicago" }, "body": "I agree with Michael Pettiford's comment - 03/Jan/12 5:56 PM. Will open new issue for iOS.", "updateAuthor": { "name": "tinjaw", "key": "tinjaw", "displayName": "Chaim Krause", "active": true, "timeZone": "America/Chicago" }, "created": "2013-01-03T12:07:02.000+0000", "updated": "2013-01-03T12:07:02.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }