2016-01-24 52 views
-2

我试图实现拉在我的云套件笔记应用刷新,但我收到以下错误,当我拉下刷新运行:拉刷新引发此错误

2016年1月24日12:36:01.078 ClipCloud2016Beta [13325:521249] - [ClipCloud2016Beta.MasterViewController HandleRefresh:]:无法识别的选择器发送到实例0x7fd77b4612f0 2016-01-24 12:36:01.084 ClipCloud2016Beta [13325:521249] *终止应用程序,由于未捕获异常'NSInvalidArgumentException',原因:' - [ClipCloud2016Beta.MasterViewController HandleRefresh:]:无法识别的选择器发送到实例0x7fd77b4612f0' *第一次抛出呼叫st ACK: ( 0的CoreFoundation 0x000000010db5ae65 exceptionPreprocess + 165 1 libobjc.A.dylib 0x000000010f89adeb objc_exception_throw + 48 2的CoreFoundation 0x000000010db6348d - [NSObject的(NSObject的)doesNotRecognizeSelector:] + 205 3的CoreFoundation 0x000000010dab090a ___forwarding_ + 970 4的CoreFoundation 0x000000010dab04b8 _CF_forwarding_prep_0 + 120 5的UIKit 0x000000010e379194 - [UIApplication的sendAction:为:从:forEvent:] + 92 6的UIKit 0x000000010e4e86fc - [UIControl sendAction:至:forEvent:] + 67 7的UIKit 0x000000010e4e89c8 - [UIControl _sendActionsForEvents:withEvent:方法] + 311 8的UIKit 0x000000010ececc0b - [UIRefreshControl _setRefreshControlState:通知:] + 456 9的UIKit 0x000000010ecf4ec3 52 - [_ UIRefreshControlModernContentView _snappingMagic] _block_invoke + 57 10 libdispatch.dylib 0x0000000110a8de5d _dispatch_call_block_and_release + 12 11 libdispatch.dylib 0x0000000110aae49b _dispatch_client_callout + 8 12 libdispatch。 dylib 0x0000000110a93746 _dispatch_after_timer_callback + 334 13 libdispatch.dylib 0x0000000110aae49b _dispatch_client_callout + 8 14 libdispatch.dylib 0x0000000110aa18a5 _dispatch_source_latch_and_call + 1750 15 libdispatch.dylib 0x0000000110a9c830 _dispatch_source_invoke + 1057 16 libdispatch.dylib 0x000000处0110a96111 _dispatch_main_queue_callback_4CF + 1324 17的CoreFoundation 0x000000010dabad09 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 18的CoreFoundation 0x000000010da7c2c9 __CFRunLoopRun + 2073 19的CoreFoundation 0x000000010da7b828 CFRunLoopRunSpecific + 488个 20 GraphicsServices 0x0000000111a38ad2 GSEventRunModal + 161 21的UIKit 0x000000010e377610 UIApplicationMain + 171 22个ClipCloud2016Beta 0x000000010d81925d主+ 109 23 libdyld .dylib 0x0000000110ae292d start + 1 24 ??? 0x0000000000000001为0x0 + 1 ) 的libC++ abi.dylib:与类型NSException的未捕获的异常 (LLDB)

我已启用刷新在UITableView的

的故事板

实施在ViewDidLoad()

以下终止
self.refreshControl?.addTarget(self, action: "HandleRefresh:", forControlEvents: UIControlEvents.ValueChanged) 

这是我的刷新方法:

func handleRefresh(refreshControl: UIRefreshControl) { 


    self.tableView.reloadData() 
    refreshControl.endRefreshing() 
} 

self.tableView.reloadData()在我的代码中的其他地方工作不值得。

也可能一文不值,当发生错误的Xcode在我AppDelegate类在该行

class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDelegate { 
+2

'HandleRefresh'和'handleRefresh' - 一个计时器大写的第一个字母,一个小写的第一个字母。 – luk2302

+2

这种简单的拼写错误不需要答案。这个问题只会被封闭,因为它是一个简单的印刷错误。 – luk2302

+0

谢谢@ luk2302,如果你感觉到它,我有另一个问题,我卡在我的个人资料:) – Malorrr

回答

0

问题通过评议

解决最终方法和调用之间HandleRefresh VS handleRefresh拼写错误。