我有一個結構的位置,就像這樣:通行證結構來performSelector:withObject:afterDelay:
typedef struct Position { int x, y; } Position;
我如何可以通過它在NSObject的performSelector:withObject:afterDelay:
?就像這樣:
Position pos;
pos.x = pos.y = 1;
[self performSelector:@selector(foo:)
withObject:pos // ERROR
afterDelay:5.0f];
編輯:改變代碼來解決錯字