Welcome, Guest
Username Password: Remember me

Is a XIB Required for Optimal STV Performance?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Is a XIB Required for Optimal STV Performance?

Is a XIB Required for Optimal STV Performance? 1 year, 6 months ago #1

Do you recommend that each View Controller have an associated XIB for optimal STV performance? I ask because I've moved to coding all of my View Controllers as NIB-less since I don't include any UI elements and have STV generate 100% of the forms (though I do add my own navbar buttons when needed. Since I started doing this I discovered my NIB-less VCs do not scroll to display the appropriate cell when keyboard pops - I only started seeing this when I went NIBless. I also noticed that all View Controllers in the sample apps have associated XIBs - so thought I'd ask.

My environment includes a Tab Bar controller that contains many Navigation Controllers.

Thanks!
Karl
  • kes815
  • OFFLINE
  • Junior Boarder
  • Posts: 32
  • Karma: 0

Re: Is a XIB Required for Optimal STV Performance? 1 year, 6 months ago #2

Hi Karl,

A Nib file is not required at all by STV. We usually include one just to set the UITableView's style to grouped from Interface Builder. What is the base class of your view controller? (UIViewController or UITableViewController?)
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
Last Edit: 1 year, 6 months ago by tarekskr.

Re: Is a XIB Required for Optimal STV Performance? 1 year, 6 months ago #3

I'm using UITableViewController as my base class.
  • kes815
  • OFFLINE
  • Junior Boarder
  • Posts: 32
  • Karma: 0

Re: Is a XIB Required for Optimal STV Performance? 1 year, 6 months ago #4

A UITableViewController actually handles all the resizing and scrolling automatically. STV handles resizing and scrolling for a UIViewController only. Are you able to create a project from scratch that replicates this behavior? I'd be very interested to see it.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
  • Page:
  • 1
Time to create page: 0.72 seconds