2017-10-07 24 views
0

Eureka에서 작동하도록 MultivaluedSection 기능을 추가하는 데 필요한 모든 종류의 특수 설정이 필요합니까?Eureka MultivaluedSection NSRangeException 추가

예제 프로젝트의 코드를 광산에 복사했으며 행을 추가하는 대신 예외가 발생합니다. 재미있는 점은 Example 프로젝트에서 모든 것이 잘 작동하는 것 같아서, 어떤 종류의 추가 설정이 필요하다고 생각하게합니까?

예외 :

'NSRangeException'이유 '- [jQuery과 _contentOffsetForScrollingToRowAtIndexPath : atScrollPosition : usingPresentationValues ​​:] : 행 (1)의 경계를 넘어 1 부분 (1).

uncaught exception 'NSRangeException', reason: '-[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:usingPresentationValues:]: row (1) beyond bounds (1) for section (1).' 
*** First throw call stack: 
(
    0 CoreFoundation      0x000000010c9ab1cb __exceptionPreprocess + 171 
    1 libobjc.A.dylib      0x000000010c30df41 objc_exception_throw + 48 
    2 CoreFoundation      0x000000010ca1fb95 +[NSException raise:format:] + 197 
    3 UIKit        0x0000000109bc8d76 -[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:usingPresentationValues:] + 1861 
    4 UIKit        0x0000000109bc9b8f -[UITableView _scrollToRowAtIndexPath:atScrollPosition:animated:usingPresentationValues:] + 146 
    5 UIKit        0x0000000109bc9a11 -[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:] + 123 
    6 Eureka        0x0000000107b7558c _T06Eureka18FormViewControllerC05tableC0ySo07UITableC0C_SC0fC16CellEditingStyleO6commit10Foundation9IndexPathV8forRowAttF + 2780 
    7 Eureka        0x0000000107b75ba7 _T06Eureka18FormViewControllerC05tableC0ySo07UITableC0C_SC0fC16CellEditingStyleO6commit10Foundation9IndexPathV8forRowAttFTo + 119 
    8 UIKit        0x0000000109bee33e -[UITableView _didInsertRowForTableCell:] + 122 
    9 UIKit        0x0000000109ec6bee -[UITableViewCell editControlWasClicked:] + 180 
    10 UIKit        0x0000000109a949bd -[UIApplication sendAction:to:from:forEvent:] + 83 
    11 UIKit        0x0000000109c0b183 -[UIControl sendAction:to:forEvent:] + 67 
    12 UIKit        0x0000000109c0b4a0 -[UIControl _sendActionsForEvents:withEvent:] + 450 
    13 UIKit        0x0000000109c0b614 -[UIControl _sendActionsForEvents:withEvent:] + 822 
    14 UIKit        0x0000000109c0a3cd -[UIControl touchesEnded:withEvent:] + 618 
    15 UIKit        0x000000010a071a88 _UIGestureEnvironmentSortAndSendDelayedTouches + 5560 
    16 UIKit        0x000000010a06b93e _UIGestureEnvironmentUpdate + 1483 
    17 UIKit        0x000000010a06b327 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] + 484 
    18 UIKit        0x000000010a06a3d3 -[UIGestureEnvironment _updateGesturesForEvent:window:] + 288 
    19 UIKit        0x0000000109b0a45c -[UIWindow sendEvent:] + 4102 
    20 UIKit        0x0000000109aaf802 -[UIApplication sendEvent:] + 352 
    21 UIKit        0x000000010a3e1a50 __dispatchPreprocessedEventFromEventQueue + 2809 
    22 UIKit        0x000000010a3e45b7 __handleEventQueueInternal + 5957 
    23 CoreFoundation      0x000000010c94e2b1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 
    24 CoreFoundation      0x000000010c9edd31 __CFRunLoopDoSource0 + 81 
    25 CoreFoundation      0x000000010c932c19 __CFRunLoopDoSources0 + 185 
    26 CoreFoundation      0x000000010c9321ff __CFRunLoopRun + 1279 
    27 CoreFoundation      0x000000010c931a89 CFRunLoopRunSpecific + 409 
    28 GraphicsServices     0x0000000110c5a9c6 GSEventRunModal + 62 
    29 UIKit        0x0000000109a92d30 UIApplicationMain + 159 

답변

1

해결되었습니다.

사용자 정의 ViewController가 override func viewWillAppear(_ animated: Bool)을 무시하고 있었지만 super.viewWillAppear()에 걸리는 것을 잊었습니다.

유레카가 제대로 작동하려면 매우 중요했습니다.