Search code examples
iosobjective-ciphonecocoa-touchuikit

How to separate modules in different View Controllers


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.

  1. Social integration feature and code, Can I put my code in separate file for FB and Twitter.

How can I make my FB and Twitter code in a separate view controller?


Solution

  • 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.