You are doing nothing wrong.The compiler cause warning because it does not know about selector yet. If there is one place you getting this warning then use
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[_delegate1 performSelector:_selector1 withObject:json];
#pragma clang diagnostic pop
If there are multiple places You can define macro
#define SuppressPerformSelectorLeakWarning(Stuff) \
do { \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \
Stuff; \
_Pragma("clang diagnostic pop") \
} while (0)
and then use macro at all places where warning caused
SuppressPerformSelectorLeakWarning(
[_delegate1 performSelector:_selector1 withObject:json];
);
call every selector like this and it will supress the warning