0

Recently I was searching for an useful approach for static table views without using storyboards for my entire app. I found this answer:

Static table view cells are only available when using storyboards. However, if you aren't using storyboards for your entire UI you can still use them for individual screens instead of a collection of strings.

To do this you can create a UIStoryboard file with a single view controller on it that has it's File's Owner set to your custom view controller subclass. Set the VC's identifier to some value. When you want to display this, get the storyboard and then instantiate your view controller subclass by creating the VC from your storyboard.

Is it a good approach? Or is it better to implement it the iOS4 way?

What should be preferred in case of performance and maintainable code base?

Thanks

Community
  • 1
  • 1
sn3ek
  • 1,929
  • 3
  • 22
  • 32

1 Answers1

1

Maintaining code base is pretty easy in Storyboard for static pages.

Paramasivan Samuttiram
  • 3,728
  • 1
  • 24
  • 28