Is Grouptableviewbackgroundcolor Deprecated on iOS 6

is groupTableViewBackgroundColor deprecated on iOS 6?

This method will be deprecated during the 6.0 seed program
If you want to have a background in your own view that looks like the table view background,
then you should create an empty table view and place it behind your content.

Group table view background color is deprecated in ios 6.0

Open your storyboard, check all views in the Attributes Inspector and change all views with Grouped Table View background color to any other color, I changed mine to white and all warnings went away.

attributes inspector

Why the Group Table View Background Color was deprecated?

On the Apple discussion boards, one Apple engineer explained that the table view background was tweaked in iOS 6 to a point where it couldn't be represented by a UIColor anymore. Table views now use a background view instead.

Setting background to GroupTableViewBackgroundColor

i have used this on my current project & it works fine i have xcode 4.0 & simulator 4.3
i have found on net that it is deprecated on ios 6
i have used like this

[self.tableview setBackgroundColor:[UIColor groupTableViewBackgroundColor]];

just have look at this link is groupTableViewBackgroundColor deprecated on iOS 6?

for alternative you can find out same image as UItableview Grouped style background on internet.

How to get this background strip in IOS 6?

This function groupTableViewBackgroundColor deprecated on iOS 6. Please set color or image in Background mode
please see the SO answer

A Lot of Functions are deprecated - iOs 6


[self presentModalViewController:pNewController animated:YES];

can be replaced by

[self presentViewController:pNewController animated:YES completion:nil];

The background of this change can be seen on WWDC 2012 video session #236, the evolution of view controllers on iOS.

cannot get rid of Group Table View Background Color deprecated warning in xib files

I also had troubles finding the grouped table views where I assigned this color, because my storyboard is kind of huge. For me this worked:

  • Edit the storyboard or XIB files as source (right-click on storyboard, open as source)
  • Remove all the occurences of <color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/>

Make sure to backup your storyboard of XIBs first.

Get grouped tableview background color in my view

Yep, use the +[UIColor groupTableViewBackgroundColor]:

[myView setBackgroundColor:[UIColor groupTableViewBackgroundColor]];

Difference between UITextAlignmentCenter and NSTextAlignmentCenter

The cause s that UITextAlignment is deprecated in iOS 6 and the actual textAlignment property's type is NSTextAlignment.
See: Reference



Related Topics



Leave a reply



Submit