草庐IT

avcodec_alloc_context

全部标签

iphone - iOS 错误 : No visible @interface for 'Project' declares the selector 'alloc'

我正在像这样初始化一个对象:Project*Project=[[Projectalloc]init];这是项目类的代码:Project.h#import@interfaceProject:NSObject{}@property(nonatomic,assign)intprojectID;@property(nonatomic,strong)NSString*name;@endProject.m#import"Project.h"@implementationProject@synthesizeprojectID,name;@end我遇到错误Novisible@interfacefor'

iphone - iOS 错误 : No visible @interface for 'Project' declares the selector 'alloc'

我正在像这样初始化一个对象:Project*Project=[[Projectalloc]init];这是项目类的代码:Project.h#import@interfaceProject:NSObject{}@property(nonatomic,assign)intprojectID;@property(nonatomic,strong)NSString*name;@endProject.m#import"Project.h"@implementationProject@synthesizeprojectID,name;@end我遇到错误Novisible@interfacefor'

ios - 错误 : Semantic Issue: Interface type cannot be statically allocated?

“错误:语义问题:无法静态分配接口(interface)类型”是什么意思?这是错误的行:UIViewControllerimageWithCaptionController=[[UIViewControlleralloc]initWithNibName:@"ImageWIthCaption"bundle:nibBundleOrNil];谢谢帕特里克 最佳答案 您可能在imageWithCaptionController之前缺少“*”,您的行应该是UIViewController*imageWithCaptionController=

ios - 错误 : Semantic Issue: Interface type cannot be statically allocated?

“错误:语义问题:无法静态分配接口(interface)类型”是什么意思?这是错误的行:UIViewControllerimageWithCaptionController=[[UIViewControlleralloc]initWithNibName:@"ImageWIthCaption"bundle:nibBundleOrNil];谢谢帕特里克 最佳答案 您可能在imageWithCaptionController之前缺少“*”,您的行应该是UIViewController*imageWithCaptionController=

ios - Xcode 6 : Build hangs and Interface Builder Cocoa Touch Tool starts allocating all RAM

我遇到了一个问题,我无法通过在这里或在Google上搜索找到解决方案。我正在构建一个由多个开发人员共享的项目。出于某种原因,我是唯一遇到此问题的人。我多次检查了代码,甚至重新安装了Xcode。所以发生的事情是,当我构建项目时,构建过程永远挂起。名为“InterfaceBuilderCocoaTouchTool”的进程运行并开始累积RAM,直到达到Mac的限制(16GB)。此时,一看到我杀了进程,构建就失败了。在控制台应用程序上我看到了这个:2014-10-024:45:16.013PMInterfaceBuilderCocoaTouchTool[875]:BUGinlibdispatc

ios - Xcode 6 : Build hangs and Interface Builder Cocoa Touch Tool starts allocating all RAM

我遇到了一个问题,我无法通过在这里或在Google上搜索找到解决方案。我正在构建一个由多个开发人员共享的项目。出于某种原因,我是唯一遇到此问题的人。我多次检查了代码,甚至重新安装了Xcode。所以发生的事情是,当我构建项目时,构建过程永远挂起。名为“InterfaceBuilderCocoaTouchTool”的进程运行并开始累积RAM,直到达到Mac的限制(16GB)。此时,一看到我杀了进程,构建就失败了。在控制台应用程序上我看到了这个:2014-10-024:45:16.013PMInterfaceBuilderCocoaTouchTool[875]:BUGinlibdispatc

ios - swift 2.0 : Type of Expression is ambiguous without more context?

以下用于Swift1.2:varrecordSettings=[AVFormatIDKey:kAudioFormatMPEG4AAC,AVEncoderAudioQualityKey:AVAudioQuality.Max.rawValue,AVEncoderBitRateKey:320000,AVNumberOfChannelsKey:2,AVSampleRateKey:44100.0]现在,它给出错误:"Typeexpressionisambiguouswithoutmorecontext". 最佳答案 你可以给编译器更多的信息:

ios - swift 2.0 : Type of Expression is ambiguous without more context?

以下用于Swift1.2:varrecordSettings=[AVFormatIDKey:kAudioFormatMPEG4AAC,AVEncoderAudioQualityKey:AVAudioQuality.Max.rawValue,AVEncoderBitRateKey:320000,AVNumberOfChannelsKey:2,AVSampleRateKey:44100.0]现在,它给出错误:"Typeexpressionisambiguouswithoutmorecontext". 最佳答案 你可以给编译器更多的信息:

ios - "Clear Graphics Context"是什么意思?

在Xcode4.3中,当你选择一些放在.xib中的UIView对象时,你会发现有一个选项说“清除图形上下文”。这是什么意思? 最佳答案 Whenitischecked,iOSwilldrawtheentireareacoveredbytheobjectintransparentblackbeforeitactuallydrawstheobject.Itisrarelyneeded.BeginningIOS5Development:ExploringtheIOSSDK,page81,paragraph3.

ios - "Clear Graphics Context"是什么意思?

在Xcode4.3中,当你选择一些放在.xib中的UIView对象时,你会发现有一个选项说“清除图形上下文”。这是什么意思? 最佳答案 Whenitischecked,iOSwilldrawtheentireareacoveredbytheobjectintransparentblackbeforeitactuallydrawstheobject.Itisrarelyneeded.BeginningIOS5Development:ExploringtheIOSSDK,page81,paragraph3.