Reason: Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (7) must be equal to the number of rows contained in that section before the update (10), plus or minus the number of rows inserted or deleted from that section (1 inserted, 0 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).
Native stack trace:
0 CoreFoundation 0x00000001120ff8db __exceptionPreprocess + 331
1 libobjc.A.dylib 0x00000001130d0ac5 objc_exception_throw + 48
2 CoreFoundation 0x00000001120ff662 +[NSException raise:format:arguments:] + 98
3 Foundation 0x000000010e15f76b -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
4 UIKitCore 0x000000011c4748bd -[UITableView _endCellAnimationsWithContext:] + 18781
5 UIKitCore 0x000000011c48d7a3 -[UITableView endUpdates] + 74
6 NorbekovApp.iOS 0x000000010482d0b9 xamarin_dyn_objc_msgSend + 217
7 ??? 0x0000000137fadf1a 0x0 + 5234155290
at ObjCRuntime.Runtime.ThrowNSException (System.IntPtr ns_exception) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.14.0.114/src/Xamarin.iOS/ObjCRuntime/Runtime.cs:406
at ObjCRuntime.Runtime.throw_ns_exception (System.IntPtr exc) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/runtime/Delegates.generated.cs:128
at at (wrapper native-to-managed) ObjCRuntime.Runtime.throw_ns_exception(intptr)
at at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSend(intptr,intptr)
at UIKit.UITableView.EndUpdates () [0x0000d] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.14.0.114/src/Xamarin.iOS/UIKit/UITableView.g.cs:294
at Xamarin.Forms.Platform.iOS.ListViewRenderer+<>c__DisplayClass50_0.<InsertRows>b__0 () [0x00053] in <f0489d3941b24a20a5b9223b572ec7c0>:0
at Xamarin.Forms.Platform.iOS.ListViewRenderer.InsertRows (System.Int32 newStartingIndex, System.Int32 newItemsCount, System.Int32 section) [0x00046] in <f0489d3941b24a20a5b9223b572ec7c0>:0
at Xamarin.Forms.Platform.iOS.ListViewRenderer.UpdateItems (System.Collections.Specialized.NotifyCollectionChangedEventArgs e, System.Int32 section, System.Boolean resetWhenGrouped) [0x00102] in <f0489d3941b24a20a5b9223b572ec7c0>:0
at Xamarin.Forms.Platform.iOS.ListViewRenderer.OnCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00000] in <f0489d3941b24a20a5b9223b572ec7c0>:0
at Xamarin.Forms.Internals.TemplatedItemsList`2[TView,TItem].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0000a] in D:\a\1\s\Xamarin.Forms.Core\TemplatedItemsList.cs:771
at Xamarin.Forms.Internals.TemplatedItemsList`2[TView,TItem].OnProxyCollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0045f] in D:\a\1\s\Xamarin.Forms.Core\TemplatedItemsList.cs:1097
at Xamarin.Forms.ListProxy.OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0000a] in D:\a\1\s\Xamarin.Forms.Core\ListProxy.cs:233
at Xamarin.Forms.ListProxy+<>c__DisplayClass33_0.<OnCollectionChanged>b__0 () [0x00018] in D:\a\1\s\Xamarin.Forms.Core\ListProxy.cs:206
at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.14.0.114/src/Xamarin.iOS/Foundation/NSAction.cs:152
Я про код а не екзепшн Да и что это за экзепшн, к чему он? Про него речи не шло
Обсуждают сегодня