大佬教程收集整理的这篇文章主要介绍了objective-c – 错误:预期;在声明列表的末尾 – 类未被识别为类型,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_197_21@#import <UIKit/UIKit.h> #import <CoreData/CoreData.h> #import <CoreLOCATIOn/CoreLOCATIOn.h> #import <AVFoundation/AVFoundation.h> #import <CoreMedia/CoreMedia.h> #import <ImageIO/ImageIO.h> #import <CoreVideo/CoreVideo.h> @interface ViewController : UIViewController <UINavigationControllerDelegate,CLLOCATIOnManagerDelegate> @property (nonatomic,strong) NsmanagedObjectContext *managedObjectContext; @property(nonatomic,weak) IBOutlet UIImageView *SELEctedImageView; @property(nonatomic,retain) IBOutlet UIImageView *vImage; @property(nonatomic,retain) AVCaptureStillImageOutput *stillImageOutput; - (IBACtion)photoFromAlbum; - (IBACtion)photoFromCamera; - (IBACtion)saveImageToAlbum; - (IBACtion)seguetochoosePhotoTypeViewController; @end
这条线:
@H_197_21@@property(nonatomic,retain) AVCaptureStillImageOutput *stillImageOutput;
正在产生以下问题:
@H_197_21@Expected ; at end of declaration list.
Xcode没有将AVCaptureStillImageOutput识别为类,因为它仍然是黑色并且不建议它作为类型,并且“Fix-it”想要插入;就在AVCaptureStillImageOutput之后.
但是,如果我尝试使用声明AVCaptureStillImageOutput作为我的viewController.m文件的viewDidLoad中的类型,它会识别它并允许它作为类型.此外,其余的AVFoundation类在那里的代码中被识别.
框架在那里,我只是遇到了这个@property声明的问题.
@H_197_21@@property(nonatomic,retain) AVCaptureStillImageOutput *stillImageOutput;
AVCaptureStillImageOutput和* stillImageOutput之间有一些不可见的字符.如果我将此行粘贴到vi编辑器中,它看起来像这样:
@H_197_21@@property(nonatomic,retain) AVCaptureStillImageOutput<feff><feff><feff><feff><feff> *stillImageOutput;
(U FEFF是一个Unicode Byteorder标记,它看起来像Xcode中的普通空间,即使“Show Invisibles”被激活也是如此).
以上是大佬教程为你收集整理的objective-c – 错误:预期;在声明列表的末尾 – 类未被识别为类型全部内容,希望文章能够帮你解决objective-c – 错误:预期;在声明列表的末尾 – 类未被识别为类型所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。