In my iOS 8.0 app,
HomeViewController
is the main UIViewcontroller
in my project.
I have no option but to Put my animation and click events code in a separate file.
How can I make my FB and Twitter code in a separate view controller?
I would recommend you start reading how to structure an iOS app. There are different styles for different designed patterns.
Also, would be good to take a look at the good practices guides.