i am having trouble merging iAD into my current code/definition. i already have code set for a card scroll view style display and wanted to add iAD to the same view controller:
how can i do that without getting the errors i am getting?
this is the code for card scroll view in view controller.h
@interface ViewController1 : UIViewController <CardScrollViewDelegate>
@end
this is my code for iAD for view controller.h but should be merged with the above otherwise i get another error saying duplicate definition:
@interface ViewController1 : UIViewController <ADBannerViewDelegate> {
SLComposeViewController *mySLComposeSheet;
}
@property (weak, nonatomic) IBOutlet ADBannerView *banner1;
The view controller name / custom class im trying to add them both to is ViewController1
UPDATE:
its much simpler than i thought, just add a comma (FOR THOSE WHO ARE CURIOUS LIKE I WAS)
@interface ViewController1 : UIViewController <CardScrollViewDelegate, ADBannerViewDelegate> {
}
@property (weak, nonatomic) IBOutlet ADBannerView *banner1;
@end