title: How to change the custom class of a view by code
body: <p>How can I set the class for the same view when I preform a swipe on the view?
  I have already imported the header files for the classes that I want to change to for example <code>#import "Circuit1.h"</code></p>
  
  <pre><code>- (IBAction)userSwiped:(UISwipeGestureRecognizer *)sender {
      [self numberOfSwips];
  
      self.numberOfSwips+=1;
      if (self.numberOfSwips&gt;3){
          self.numberOfSwips=3;
      }
      if (self.numberOfSwips ==1) {
          self.myView.class =super.Circuit1;}
      else if (self.numberOfSwips ==2){
          self.myView.class =super.Circuit2;}
      else if (self.numberOfSwips ==3){
       self.myView.class =super.Circuit3;
      }
      NSLog(@"%f",self.numberOfSwips);
  }
  </code></pre>
  
  <p>It's giving me an error for <code>self.myView.class = super.Circuit1</code> and the other 2 </p>