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

iOS: Window backgroundImage ignored in grouped TableView

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: Release 2.1.4, Release 3.0.0
    • Component/s: iOS
    • Environment:

      -iOS 6.0 (simulator)
      -Mac OSX 10.8.2
      -Titanium Mobile SDK 2.1.4.GA & 3.0.0 RC2
      -Titanium Studio 2.1.2.201208301612

      Description

      Repro steps

      Example code:

      /**
       * Get table rows
       */
      var getTableRows = function() {
      	var rows = [];
      	
      	rows.push(Ti.UI.createTableViewRow({
      		title : 'Item 1'
      	}));
      	rows.push(Ti.UI.createTableViewRow({
      		title : 'Item 2'
      	}));
      	rows.push(Ti.UI.createTableViewRow({
      		title : 'Item 3'
      	}));
      	
      	return rows;
      };
       
      // construct window
      var win = Ti.UI.createWindow({
      	title : 'Test',
      	backgroundImage : '/image.png'
      });
       
      // containing table
      var table = Ti.UI.createTableView({
      	style : Ti.UI.iPhone.TableViewStyle.GROUPED
      });
       
      // some data
      table.data = getTableRows();
      win.add(table);
       
      // show the window
      win.open();
      

      Behaviour on 2.1.3 SDK

      TableView is grouped and background image displayed.

      TableView SDK_213.png

      Behaviour on 2.1.4 SDK (broken)

      TableView is grouped and background image ignored. Instead, the standard iOS pinstripe pattern is shown.

      TableView SDK_214.png

      Expected behaviour

      As per 2.1.3 SDK.

      Community thread

      http://developer.appcelerator.com/question/144761/sdk-214-backgroundimage-not-working-in-grouped-table-views#251163

        Attachments

        1. image.png
          image.png
          250 kB
        2. TableViewBug.zip
          2.29 MB
        3. TableView SDK_213.png
          TableView SDK_213.png
          59 kB
        4. TableView SDK_214.png
          TableView SDK_214.png
          45 kB

          Activity

            People

            • Assignee:
              mstepanov Max Stepanov
              Reporter:
              outofcoffee Pete Cornish
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration