NSException raise:format: as the last statement in a method

后端 未结 3 445
滥情空心
滥情空心 2021-01-19 17:52

I have this method:

+ (MHTwitterParser*)createParser:(NSString*)format {
    if ([format compare:@\"json\"] == NSOrderedSame) {
        return [[MHJsonTwitt         


        
3条回答
  •  面向向阳花
    2021-01-19 18:31

    Replacing [exception raise]; with @throw exception; is functionally the same thing and will prevent the warning (see: Throwing Exceptions).

提交回复
热议问题