I am in a situation where I need to set the style of a table view to plain if iOS 6 is running, but grouped if iOS 7 is. I am creating my table view from a storyboard.
What would be ideal is if there was a way to somehow set a property of a view in IB depending on the iOS version. Is there something like this?
I was thinking about simply copying all of the attributes (frame, delegate, etc.) into a new table view in the viewDidLoad method, but I then realized that I would have to some how copy the cell styles from within the storyboard table view into the new programatically created table view. Is there some way to do this?
One solution would be to create the table view from code, and just store the table view cells in their own nibs. There are several (7 to be exact) types of cells used which are only used with this table view. Therefore, I am a bit hesitant on this option.
What would be the best approach for solving this issue?
Thanks for any help