Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-9408

iOS: Titanium.UI.iPad.DocumentViewer should be available also for iPhone

    Details

      Description

      Titanium.UI.iPad.DocumentViewer object (http://docs.appcelerator.com/titanium/2.0/index.html#!/api/Titanium.UI.iPad.DocumentViewer) it's available only for iPad.

      This is the sample code available for iPad on the documentation:

      Titanium.UI.setBackgroundColor('#000');
          //creating the window
          var win1 = Titanium.UI.createWindow({
              title:'win 1',
              backgroundColor:'#fff'
              });
           //add window - navigation bar
           var modalWin = Ti.UI.createWindow();
           //nav bar
           var navmodal = Ti.UI.iPhone.createNavigationGroup({
              window:modalWin
              });
           win1.add(navmodal);
           //button for the nav bar
           var b2t = Titanium.UI.createButton({
             title:'Launch'
             });
           modalWin.RightNavButton = b2t;
           //button for the window
           var b1t = Titanium.UI.createButton({
             title:'Launch',
             height:40,
             width:200,
             top:270
             });
           win1.add(b1t);
           //Setting up the documentviewer
           z = Ti.UI.iPad.createDocumentViewer({url:'Example.pdf'});
           //documentviewer with animation set on and a quicklook view poping up next to a view
           b1t.addEventListener('click', function(){z.show({animated:false,view:b2t});});
           //documentviewer with animation set off
           b2t.addEventListener('click', function(){z.show();});
           win1.open();
      

      Customer needs it also for iPhone; Ti.Ui.iOS.createDocumentViewer() should be available

      Additional notes

      Customer ticket: http://support-admin.appcelerator.com/display/APP-773698

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                srahim Sabil Rahim
                Reporter:
                fcasali Federico Casali
              • Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration