Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11025] iOS 6: Grouped style tabelview background doesn't work (kitchen sink)

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2012-09-21T14:41:03.000+0000
Affected Version/sRelease 2.1.3
Fix Version/sSprint 2012-19 API
ComponentsiOS
Labelsn/a
ReporterJong Eun Lee
AssigneeIngo Muschenetz
Created2012-09-18T19:57:21.000+0000
Updated2017-03-21T22:45:25.000+0000

Description

If you set tableview style is grouped, you can't change background color and background image. You can see this bug on kitchen sink. (table_view_layout3.js, table_views.js)

Attachments

FileDateSize
iOS Simulator Screen shot 2012. 9. 19. 오전 11.55.50.png2012-09-18T19:57:21.000+000092563
iOS Simulator Screen shot 2012. 9. 19. 오전 11.55.58.png2012-09-18T19:57:21.000+000051256
iOS Simulator Screen shot 2012. 9. 19. 오전 11.56.23.png2012-09-18T19:57:21.000+000037889
iOS Simulator Screen shot 2012. 9. 19. 오전 11.56.27.png2012-09-18T19:57:21.000+000041902

Comments

  1. Jong Eun Lee 2012-09-18

    Left two images are ios6's. Right two images are ios5's.
  2. Jong Eun Lee 2012-09-18

    I add a 'self.tableView.backgroundView = nil;' to TiUITableView.m . It works. But I'm not sure there isn't side effect. :)
     
       -(void)setBackgroundImage_:(id)arg
       {
       	NSURL *url = [TiUtils toURL:arg proxy:(TiProxy*)self.proxy];
       	UIImage *image = [[ImageLoader sharedLoader] loadImmediateImage:url];
       	[[self tableView] setBackgroundColor:[UIColor colorWithPatternImage:image]];
           self.tableView.backgroundView = nil;
           
           self.backgroundImage = arg;
       }
       
  3. Daniel Sefton 2012-09-20

    Tested and confirmed on iOS 6.0, TiSDK 2.1.3.v20120915120319 - background image/colour is not set. Background image/colour is set as expected on iOS 5.1 with all TiSDKs.
  4. Sabil Rahim 2012-09-21

    This bug was fixed as part of another fix. Verified that this cannot be reproduced with the last build from 2_1_X branch (1c7ff05bb3235929620d1d027b77fa136901a1fc) and with latest build of kitchensink on Xcode 4.5(GA) running iOS 6.0 Simulator Marking ticket as duplicate of timob-10998
  5. Lee Morris 2017-03-21

    Closing ticket as duplicate with reference to the above comments.

JSON Source