0
我有一張支票,我看如果委託響應的回調,然後我嘗試performSelector:withObject:withObject:如何傳遞對象與performSelector:withObject:withObject:
if([delegate respondsToSelector:self.callback])
{
[delegate performSelector:callback withObject:object withObject:error];
}
當這是我最終在回調方法
-(void)thisIsMyCallBack {
//NSLog(@"object = ", object);
}
但我沒有訪問該對象。
我試圖創建另一個方法
-(void)thisIsMyCallBack:(NSObject *)object withObject:(NSObject *)error {
//NSLog(@"object = ", object);
}
,但是這不叫,並且回調轉到第一個。
如何訪問我想傳遞的對象?
完美,謝謝你的幫助 – John 2011-02-01 18:51:06