I\'m trying to pass an NSString by reference but it doesn\'t work.
NSString
This is the function:
+(void)fileName:(NSString *) file { file =
Try this
+(void)filename:(NSString **)file { *file=@"folder_b"; }
and send the file as &file like:
&file
NSString *file; [function fileName:&file]; nslog(@"%@",file);
hope this will work.