草庐IT

DTCompType

全部标签

ios - 用 %i 格式化 NSUInteger

我正在查看一个前雇员代码,其中出现了大约20个这样的警告:Valuesoftype'NSUInteger'shouldnotbeusedasformatarguments;addanexplicitcastto'unsignedlong'instead出现这种情况的部分代码是:NSUIntegerLength;与:-(NSString*)description{//Ifnovaluewasgiven,displaytypeif([Valuelength]==0){NSString*type=@"";switch(Type){caseDTCompType_Year:type=@"year