For inheritance, the superclass MUST be inherited.
coinView.h
#import "swapView.h"
@interface coinView : swapView
- (void)count;
- (void)move;
@end
You're both forward declaring and importing ViewController.h
in your swapView
, which may cause compiler to complain.
swapView.h
#import <UIKit/UIKit.h>
@class ViewController
@interface swapView : UIImageView
.
.
.
@end