判断是否实现了某个方法 if ([self respondsToSelector:success]) { [self performSelector:success withObject:dictJson]; }