klevison / AccordionTableViewController

Swift version of https://github.com/klevison/KMAccordionTableViewController
MIT License
46 stars 2 forks source link

Xib Support #4

Closed soniacasas closed 8 years ago

soniacasas commented 8 years ago

Hi! Amazing Work!

Is any option to use this framework with xibs? I'm not using SB.

Thanks a lot!

klevison commented 8 years ago

Sure, you can use XIB or SB. Have you got any problem?

soniacasas commented 8 years ago

Yes, I have a BaseViewController which all my views inherit, so I was thinking a way to don't use the TableViewController and just subclass the table view, is that possible?

Thanks

klevison commented 8 years ago

Yes, you can do it programmatically (addChildViewController).

1) Create a new class (subclassing from BaseViewController) 2) Create a AccordionTableViewController programmatically 3) Add AccordionTableViewController's view into the new class

http://stackoverflow.com/a/35888118/846780