运维开发网

objective-c-prefix属性必须后跟接口或协议栈溢出

运维开发网 https://www.qedev.com 2020-03-02 11:02 出处:网络 作者:运维开发网整理
[编译器错误]前缀属性必须后跟接口或协议堆栈溢出 代码在prev中运行良好.项目.发布这么简单的问题我觉得自己像个白痴.这东西怎么了? #import <UIKit/UIKit.h> #import "FlipsideViewController.h" @interface MainViewController : UIViewController <FlipsideViewController
[编译器错误]前缀属性必须后跟接口或协议堆栈溢出

代码在prev中运行良好.项目.发布这么简单的问题我觉得自己像个白痴.这东西怎么了?

#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
您声明对多个协议的确认,如下所示:

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

没有多个尖括号套装.

0

精彩评论

暂无评论...
验证码 换一张
取 消