ARC迁移工具在开始迁移之前拒绝接受此代码:
[self.delegate performSelector:@selector(overlayDismissed:) withObject:self afterDelay:0];
委托人被迫使用协议实现这个方法,它应该可以正常工作:
@protocol OverlayDelegate <NSObject> - (void)overlayDismissed:(Overlay*)overlay; @end @interface Overlay : UIImageView { id<OverlayDelegate> delegate; } @property (nonatomic,assign) id<OverlayDelegate> delegate;
ARC有什么问题?为什么告诉我有没有已知的选择器实例方法performSelector:withObject:afterDelay:’?