tôi không thể tìm ra lý do tại sao tôi nhận đượclỗi Weird NSAssert
use of undeclared identifier _cmd did you mean rcmd
trên dòng nơi NSAssert là.
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int x = 10;
NSAssert(x > 11, @"x should be greater than %d", x);
[pool drain];
return 0;
}
Giải thích thực sự tốt ... và tôi đã học được điều gì đó về mục tiêu-C! – Robert
+1 cho NSCAssert – onmyway133