Unable to create grouped tableview with striped background ios6.

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

Hi All -

I see in the ios6 2.1.3 release notes that the grouped table view default background should continue to work with ios6. However, for the following code, which was showing striped background for ios5, I see a white background and not the striped background

var tableview = Titanium.UI.createTableView({
    style:Titanium.UI.iPhone.TableViewStyle.GROUPED,
    showVerticalScrollIndicator:false,
    rowBackgroundColor:'white',
    data:data
});

I tried adding backgroundColor = transperant as suggested by some fellow programmers to others in forums but that didnt help either.

var tableview = Titanium.UI.createTableView({
    style:Titanium.UI.iPhone.TableViewStyle.GROUPED,
    backgroundColor:'transparent',
    showVerticalScrollIndicator:false,
    rowBackgroundColor:'white',
    data:data
});

I am using the latest Appcelerator SDK, here are the details.

Titanium Mobile SDK Version: 2.1.3 Mobile SDK Modules API Version:2 Mobile SDK Timestamp: 10/02/12 16:16 Mobile SDK Build Number: 15997d0

xcode - 4.5.1 with ios 6

Can someone please tell me what am I missing ?

— asked 8 months ago by Birender Saini
3 Comments
  • Are you sure you're compiling against the iOS 6 SDK?

    — commented 8 months ago by Shannon Hicks

  • Shannon, I think so.

    1 - Here are some of my log file statements

    [INFO] One moment, building ...
    [TRACE] app property, ti.ui.defaultunit : system
    [DEBUG] Detecting modules in ~/Business/AgentsWare/Tourzilla/Code/App/Tourzilla-Dev/modules
    [DEBUG] Detecting modules in ~/Library/Application Support/Titanium/modules
    [DEBUG] Detected module for android: ti.cloudpush 2.0.7 @ ~/Library/Application Support/Titanium/modules/android/ti.cloudpush/2.0.7
    [DEBUG] Detected module for android: ti.cloudpush 2.0.5 @ ~/Library/Application Support/Titanium/modules/android/ti.cloudpush/2.0.5
    [DEBUG] Detected module for commonjs: ti.cloud 2.3.0 @ ~/Library/Application Support/Titanium/modules/commonjs/ti.cloud/2.3.0
    [DEBUG] Detected module for commonjs: ti.cloud 2.1.0 @ ~/Library/Application Support/Titanium/modules/commonjs/ti.cloud/2.1.0
    [INFO] Titanium SDK version: 2.1.3 (10/02/12 16:16 15997d0)
    [INFO] iPhone Device family: universal
    [INFO] iPhone SDK version: 6.0
    [INFO] iPhone simulated device: iphone
    [INFO] Performing full rebuild. This will take a little bit. Hold tight...
    [DEBUG] processing ~/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.GA/iphone/Classes/AccelerometerModule.h => ~/Business/AgentsWare/Tourzilla/Code/App/Tourzilla-Dev/build/iphone/Classes/AccelerometerModule.h
    [DEBUG] processing ~/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.GA/iphone/Classes/AccelerometerModule.m => ~/Business/AgentsWare/Tourzilla/Code/App/Tourzilla-Dev/build/iphone/Classes/AccelerometerModule.m
    [DEBUG] processing ~/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.GA/iphone/Classes/AnalyticsModule.h => ~/Business/AgentsWare/Tourzilla/Code/App/Tourzilla-Dev/build/iphone/Classes/AnalyticsModule.h
    [DEBUG] processing ~/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.GA/iphone/Classes/AnalyticsModule.mm => ~/Business/AgentsWare/Tourzilla/Code/App/Tourzilla-Dev/build/iphone/Classes/AnalyticsModule.mm

    2 - On the Titanium Studio, selecting the options = Help -> Titanium Studio -> Run Diagnostic Test, shows me the following

    Titanium Mobile SDK Version: 2.1.3
    Mobile SDK Modules API Version:2
    Mobile SDK Timestamp: 10/02/12 16:16
    Mobile SDK Build Number: 15997d0
    Titanium Mobile SDK Location: ~/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.GA

    3 - The only directory I see under ~/Library/Application Support/Titanium/mobilesdk/osx/ is - 2.1.3.GA

    Is there anything else I can check to confirm that?

    — commented 8 months ago by Birender Saini

  • In your first dump: [INFO] iPhone SDK version: 6.0 means you're using the 6.0 SDK.

    — commented 8 months ago by Shannon Hicks

1 Answer

Supposedly TI-11286 has been fixed. I'd try the example code in the ticket, and add more of your code until you figure out the problem.

— answered 8 months ago by Shannon Hicks
answer permalink
4 Comments
  • Thanks Shannon for your replies.

    Even with the example code in the ticket TI-11286 I get a black screen, which makes me think there is something wrong with with my envronment but I am not able to figure out what it is.

    When I check for SDK or Titanium Studio updates from the Help, I see that there are no more updates and also I cleaned the project area before testing with the latest release so I dont suspect previously compiled code to be in play here by any chance.

    I will appreciate any more thoughts on this issue.

    — commented 8 months ago by Birender Saini

  • Same problem here...

    — commented 8 months ago by GaleriaOpen .

  • I would comment on that JIRA ticket, and let them know about this QA post. That should get it re-opened.

    — commented 8 months ago by Shannon Hicks

  • Show 1 more comment

Your Answer

Think you can help? Login to answer this question!