title: Creating UIViewController programmatically base on response json
body: <p>Assume my json will be</p>
  
  <pre><code>{
        {"CategoryID" : "1 Month Premium"},
        {"CategoryID" : "1 Year Premium"},
        {"CategoryID" : "1 Week Premium"},
        {"CategoryID" : "1 Day Premium"},
        ....Dynamically created server data.
  }
  </code></pre>
  
  <p>And I gonna use PagingMenuController from this library : <a href="https://github.com/kitasuke/PagingMenuController" rel="nofollow noreferrer">PagingMenuController</a></p>
  
  <p>Base on the JSON which I described above, <strong>Category</strong> will be different,they may be 4 or 5,or more or less.So,Its dynamic.</p>
  
  <p>This is how I gonna develope</p>
  
  <p><a href="https://i.stack.imgur.com/nYFrK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nYFrK.png" alt="enter image description here"></a></p>
  
  <p>As you can see,I will display CategoryID on PagingMenu.All the viewcontroller inside each page menu have common items : </p>
  
  <p><strong>UITableView,UIImageView,UIButton</strong></p>
  
  <p>So,how do i create UIViewController which have common items and actions on each view and insert to my page controller.I really need help with that.I don't know how to do it programatically.It was more like google play store app which page menu are created dynamically.</p>
  
  <p>Any Help?Please,all my life,I used only storyboard and view controller.From now,I really need help.</p>