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 #import "Circuit1.h"
- (IBAction)userSwiped:(UISwipeGestureRecognizer *)sender {
[self numberOfSwips];
self.numberOfSwips+=1;
if (self.numberOfSwips>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);
}
It's giving me an error for self.myView.class = super.Circuit1
and the other 2