草庐IT

implicitly-declared

全部标签

ios - 值转换问题 : Implicit conversion loses integer precision: 'NSInteger' (aka 'long' ) to 'int32_t' (aka 'int' )

这个问题在这里已经有了答案:Objective-Cimplicitconversionlosesintegerprecision'NSUInteger'(aka'unsignedlong')to'int'warning(4个答案)关闭8年前。我已将我的Xcode版本从5.0升级到5.1,并开始在GPUImage库中出现以下错误GPUImageVideoCamera.m:301:54:隐式转换会丢失整数精度:“NSInteger”(又名“long”)到“int32_t”(又名“int”)在下面这一行的函数中“connection.videoMaxFrameDuration=CMTimeM

ios - react native : SyntaxError: Strict mode does not allow function declarations in a lexically nested statement

从ReactNative0.22.2升级并升级了一些插件后,我开始在iOS上遇到此错误。我试过降级并重新安装所有东西,但我无法摆脱修复它。其他人遇到过这个:SyntaxError:Strictmodedoesnotallowfunctiondeclarationsinalexicallynestedstatement.更新#1:除了还原模块之外,我还注释掉了任何'usestrict';我更新的内容之一是npm和node。我正在运行节点v5.3.0和npmv3.8.3。我不记得我有什么版本...更新#2:有我在ReactNative中使用的模块:"dependencies":{"deep

ios - Xcode 与 uncrustify : how to align function declaration to colons?

我有以下代码:@interfaceTRYoutubeManager:AFHTTPRequestOperationManager-(void)getVideosForDefaultChannelsWithSuccess:(void(^)(NSArray*youtubeVideosArray))successBlockfailure:(void(^)(NSError*error))failureBlock;@end所以我想保留120个字符的行限制。并在冒号上对齐声明,如下所示:@interfaceTRYoutubeManager:AFHTTPRequestOperationManager-

ios - 子类化 View Controller : Forward declaration

我一直遵循的规则是:类头文件中的@MyClassName&&#import"MyClassName"在实现中我现在决定子类化我的一个ViewController。如果我覆盖一个方法,那么我会收到以下消息:类消息的接收者'MyClassName'是前向声明为了克服这个问题,我需要将#import放入头文件中,这似乎没有遵循我认为的最佳实践。如果我误解了@class的用法,谁能解释一下?或者如果我做的正确,有人可以解释一下您需要打破最佳实践并在子类化时在头文件中使用#import吗?非常感谢。编辑:感谢您的回答。我想我需要添加更多细节来澄清我的情况并希望我的理解。这是我的基类的标题:#im

iphone - 圆弧错误 : receiver type for instance message does not declare a method with selector

我遇到了这个我无法弄清楚的错误。error:AutomaticReferenceCountingIssue:Receivertype'pageAppViewController'forinstancemessagedoesnotdeclareamethodwithselector'createContentPages'我在下面发布了我的代码。我的类pageAppViewController中确实有一个名为createContentPages的方法。这是什么意思,是什么原因造成的?//contentViewController.m#import"contentViewController

iphone - 代码错误 : No visible @interface for masterViewController declares the selector

我遇到了一个似乎相当普遍的问题,但我无法弄清楚我的代码具体有什么问题。我搜索了stackoverflow并阅读了至少十几篇与我的相似的帖子,但我无法弄清楚我的个人问题。基本上,我试图将NSMutableDictionary从模态视图传递到主视图。这是代码:QuoteMasterViewController.h:@classQuoteModalViewController;@interfaceQuoteMasterViewController:UITableViewController@endQuoteMasterViewController.m:#import"QuoteMasterV

scala - Spark - SQL : value implicits is not a member of org. apache.spark.sql.SQLContext

您好,请找到下面的代码和相应的错误:即使我使用了导入语句,但仍然出现错误importorg.apache.spark.sql._valsparkConf=newSparkConf().setAppName("new_proj")implicitvalsc=newSparkContext(sparkConf)valsqlContext=neworg.apache.spark.sql.SQLContext(sc)importsqlContext._importsqlContext.implicits._valprojects=sqlContext.read.json("/part-m-00

hadoop - IMPLICIT_CAST_TO_DOUBLE 警告 : Pig

在我处理Pig的问题过程中,我生成了一个转换文件,其记录如下所示:(0131228,-1.9,12.8)(0131229,12.8,30.4)(0131230,20.6,32.3)(0131231,21.0,32.4)我已将中间值(Max_Temp)和结束值(Min_Temp)转换为两倍。B1=LOAD'/tmp/PigLoadSandstoneData/part-m-00000'USINGPigStorage(',')AS(Dated:CHARARRAY,Min_Temp:DOUBLE,Max_Temp:DOUBLE);我想根据我正在使用以下语句进行的比较来过滤掉结果:X=filte

java - 读取 Avro 文件给出 AvroTypeException : missing required field error (even though the new field is declared null in schema)

我正在尝试反序列化/读取Avro文件,avro数据文件没有新字段。即使新字段在模式中声明为null,它也应该是可选的。但它仍然给我错误作为强制性的。Exceptioninthread"main"org.apache.avro.AvroTypeException:Foundcom.kiran.avro.User,expectingcom.kiran.avro.User,missingrequiredfieldlocAVRO模式声明:{"name":"loc","type":["string","null"]}使用代码读取文件:DatumReaderuserDatumReader=newS

php - 在 Aptana Studio 3 PHP 编辑器中启用 "Open Declaration"

我在Eclipse中使用过PDT,但对其Javascript格式(尤其是jQuery语法)不满意,所以我切换到AptanaStudio3(单机版)。我真的很喜欢Aptana的功能,但现在缺少了很多我以前喜欢的功能。例如,我希望能够右键单击一个函数并使用OpenDeclaration功能使AS3转到函数的声明(无论它在当前文件还是另一个文件中).该选项存在于AS3中,但当我尝试使用它时没有任何反应。有什么方法可以在AS3中启用此功能? 最佳答案 当Studio识别项目的“性质”(例如com.aptana.editor.php.phpN