The prefix attribute must be followed by an interface or protocol overflow

Prefix attribute

[Compiler] must be accompanied by an overflow of the interface or protocol. The code worked fine in before. project. I feel like an idiot for posting such a simple question. What is wrong with that?

#import <UIKit/UIKit.h> #import "FlipsideViewController.h" @interface MainViewController : UIViewController <FlipsideViewControllerDelegate> <UIPickerViewDelegate><UIPickerViewDataSource> @property (strong, nonatomic) IBOutlet UITextField *inputText; @property(strong, nonatomic) IBOutlet UIPickerView *picker; @property(strong, nonatomic) IBOutlet UILabel *resultLabel; @property(strong, nonatomic) NSArray *_convertFrom; @property(strong, nonatomic) NSArray *_convertTo; @property(strong, nonatomic) NSArray *_convertRates; @property(strong, nonatomic) IBOutlet UILabel *formelLabel; @property(strong, nonatomic) IBOutlet UITextField *inputText; -(IBAction)textFieldReturn:(id)sender; -(IBAction)backgroundTouched:(id)sender; @end 
+4
source share
1 answer

You declare compliance with several protocols as follows:

 @interface MainViewController : UIViewController <FlipsideViewControllerDelegate, UIPickerViewDelegate, UIPickerViewDataSource> 

Not with many corner brackets.

+2
source

Source: https://habr.com/ru/post/1440151/


All Articles