Can't change background when using grouped tableview

You must Login before you can answer or comment on any questions.

Hi guys,

Since updating to the new iOS6 I can't change the views background image or color when using grouped table view. Is this a bug in Titanium at the moment or does Apple not allow you to do that anymore? Here is an example of my code below:

var newsWin = Ti.UI.currentWindow;
newsWin.backgroundColor = '#895163';
 
var tblNews = Ti.UI.createTableView({
    rowHeight: 50,
    style: Ti.UI.iPhone.TableViewStyle.GROUPED,
    backgroundColor: 'transparent',
    rowBackgroundColor: '#fff'
});

2 Answers

Accepted Answer

That was a bug in the first builds of SDK 2.1.3 - get the latest build, it's fixed now!

latest builds

— answered 9 months ago by Soeren Damrau
answer permalink
1 Comment
  • Hi Soeren, thank you so much for the info. Just couldn't understand why it won't work. Getting latest SDK right now :)

    — commented 9 months ago by Martin Joubert

I've been struggling with the same problem - if using the latest SDK fixes the problem (I'm using the 15/09/12 release) then it'll be a lifesaver for me. Also, that link to the latest builds is very useful - you should put that on the front page of the Appcelerator homepage in a massive button :)

— answered 9 months ago by Paul Eustice
answer permalink
9 Comments
  • This doesn't fix the problem :( I got the latest SDK and I still can't change the background image when using a grouped tableview

    — commented 9 months ago by Martin Joubert

  • Hi Martin. Downloading the latest build (http://github.com/appcelerator/titanium_mobile/commit/52cf556cac1e42ea2bf6f5955bd95324f924b277) from the link above worked for me. Don't want to teach you to suck eggs but have you changed the Titanium SDK that your project is using within tiapp.xml?

    I'm using Mac with the latest SDK, iOS 6 with iPhone 5 simulator and I'm not putting any backgroundColor or backgroundImage on the tableView. I haven't tried with backgroundColor: 'transparent' but if you have that in there, perhaps try removing that property.

    HTH

    — commented 9 months ago by Paul Eustice

  • Hi Paul, I'm also using Mac with the latest iOS 6. I have updated the project in tiapp.xml. I will try the link you provided. Just one question. Once I have downloaded from Github, how do I install this SDK?

    — commented 9 months ago by Martin Joubert

  • Show 6 more comments

Your Answer

Think you can help? Login to answer this question!