title: Subclass UIButton to save Data?
body: <p>I was wondering if there is any problem with extending UIButton in order to have a ref of my Data?</p>
  
  <p>For instance I have a table view and whenever user clicks on a cell I need to provide the user with the data for that specific cell. </p>
  
  <p>Data is kept inside an array and array index was saved in UIButton tag but as my array gets updated, wrong indexes will be provided. So what i was trying to do was to extend a uibutton and then have a variable which holds my model. </p>
  
  <p>This idea works fine but as Im not really experienced in swift I wanted to know what are the drawbacks and problems of doing such a thing. </p>