該函數執行不好。objective-c函數執行不好
-(void)sampleItemA:(NSString*)a itemB:(NSString*)b itemC:(NSDate*)c{
NSLog(@"A");
NSArray* ary = [[NSArray alloc] initWithObjects:a, b, c, nil];
NSLog([ary description]);
NSLog(@"B");
}
日誌
[Session started at 2009-11-07 20:46:10 +0900.]
2009-11-07 20:46:19.170 xxx[2374:207] A
的原因是什麼?
編輯:
我試過了。 但它沒有執行。
-(void)sampleItemA:(NSString*)a itemB:(NSString*)b itemC:(NSDate*)c{
NSLog(@"A");
NSArray* ary = [[NSArray alloc] initWithObjects:a, b, c, nil];
NSLog(@"%@", [ary description]);
NSLog(@"B");
}
日誌
[Session started at 2009-11-07 21:25:37 +0900.]
2009-11-07 21:25:48.738 xxx[2455:207] A
你是什麼意思「不好執行」? – outis