Как преобразовать «SEL» и «id» в NSString?

id parent;
SEL selector;

// lot's of code...

if ([parent respondsToSelector:selector]) {

}
else {
    // This doesn't work:
    NSString *errorMessage = [NSString stringWithFormat:@"%@ in class %@ doesn't exist!", selector, parent];
}

Как преобразовать" SEL "и" id "в строку?

36
задан Keavon 18 May 2014 в 05:58
поделиться