Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode Warning: Using 'stringWithString': with a literal is redundant

I got the following warning

Using 'stringWithString': with a literal is redundant

while using the method usingWithString

[NSString stringWithString:@"Content-Type: content/unknown\r\n\r\n"]
like image 242
Fury Avatar asked Jan 15 '23 19:01

Fury


1 Answers

I solved the issue by replacing [NSString stringWithString:@"Content-Type: content/unknown\r\n\r\n"] to @"Content-Type: content/unknown\r\n\r\n"

like image 146
Fury Avatar answered May 18 '23 20:05

Fury