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

iOS: Popover left/right nav button can't be set to null

    Details

      Description

      Popover left/right nav button can't be set to null. We can't remove them. It gives a warning message = "-[NSNull barButtonItem]: unrecognized selector sent to instance 0x3650678"

      Repo Case

      1. Run the below code in the app.js
      2. Click on the "Show Popover" button.
      3. Now check the Titanium Studio console you've a warning exception.

      var win = Titanium.UI.createWindow();
       
      var button = Ti.UI.createButton({
      	title : 'Show popover',
      	width : 250,
      	height : 50,
      	top : 30,
      	right : 5
      });
      var popover = Ti.UI.iPad.createPopover({
      	width : 300,
      	height : 250,
      	rightNavButton : null,
      	title : 'I\'m a Popover',
      	backgroundColor : 'red',
      	barColor : 'green'
      });
      View = Titanium.UI.createView({
      	width : Ti.UI.FILL,
      	height : Ti.UI.FILL,
      	backgroundColor : '#900',
      	top : 0
      });
      button.addEventListener('click', function(e) {
      	popover.show({
      		view : button,
      		animated : true
      	});
      });
      popover.add(View);
      win.add(button);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              nsharma Nikhil Sharma
            • Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-14655
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration