我有以下代码用于我的pull-to-refresh“功能”(刷新CollectionView
UIRefreshControl *refreshControl = UIRefreshControl.alloc.init;
[refreshControl addTarget:self action:@selector(startRefresh:)
forControlEvents:UIControlEventValueChanged];
[self.collectionView addSubview:refreshControl];
但是,这会使我的应用程序崩溃,并显示以下错误消息:
[CollectionViewController startRefresh:]: unrecognized selector sent to instance 0x7543610
2013-03-24 12:20:10.049
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CollectionViewController startRefresh:]: unrecognized selector sent to instance 0x7543610'
我在这里缺少什么?谢谢!