Tengo una vista de tabla personalizada en mi aplicación. Implementé la característica "Cargar más" en la tabla que carga 25 filas a la vez. El problema es después de cargar 2 veces los bloqueos de la aplicación dando 'CALayerInvalidGeometry', razón: 'La posición de CALayer contiene NaN: [160 nan]' como error en OS 4.2 y superior.UITableView crash da 'CALayerInvalidGeometry', razón: 'La posición de CALayer contiene NaN: [160 nan]'
En el sistema operativo por debajo de 4.2 una de las celdas se pierde y hay un espacio en blanco entre en el medio de la tabla. No da ningún choque. Pero todavía da el error mencionado anteriormente.
Compruebo para ver dónde puede aparecer la división por 0 en mi código pero no pude encontrar ninguna. Siguiendo la pila trace i fond. Entonces ni siquiera puedo verificar dónde está ocurriendo esta excepción.
¿Alguien tiene alguna idea?
0 CoreFoundation 0x020ccbe9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x022215c2 objc_exception_throw + 47
2 CoreFoundation 0x02085628 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x0208559a +[NSException raise:format:] + 58
4 QuartzCore 0x0182396a _ZL18CALayerSetPositionP7CALayerRKN2CA4Vec2IdEEb + 177
5 QuartzCore 0x018238b5 -[CALayer setPosition:] + 42
6 QuartzCore 0x018237cc -[CALayer setFrame:] + 763
7 UIKit 0x0073c307 -[UIView(Geometry) setFrame:] + 255
8 UIKit 0x008c718a -[UITableViewCell setFrame:] + 166
9 UIKit 0x0077aa08 -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 1160
10 UIKit 0x0077077f -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:] + 75
11 UIKit 0x00785450 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1561
12 UIKit 0x0077d538 -[UITableView layoutSubviews] + 242
13 QuartzCore 0x01828451 -[CALayer layoutSublayers] + 181
14 QuartzCore 0x0182817c CALayerLayoutIfNeeded + 220
15 QuartzCore 0x0182137c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
16 QuartzCore 0x018210d0 _ZN2CA11Transaction6commitEv + 292
17 QuartzCore 0x018517d5 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99
18 CoreFoundation 0x020adfbb __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 27
19 CoreFoundation 0x020430e7 __CFRunLoopDoObservers + 295
20 CoreFoundation 0x0200bbd7 __CFRunLoopRun + 1575
21 CoreFoundation 0x0200b240 CFRunLoopRunSpecific + 208
22 CoreFoundation 0x0200b161 CFRunLoopRunInMode + 97
23 GraphicsServices 0x02611268 GSEventRunModal + 217
24 GraphicsServices 0x0261132d GSEventRun + 115
25 UIKit 0x0071542e UIApplicationMain + 1160
tengo el mismo problema – krasnyk
Cuál es extraño es que este error ocurre sólo en la fila 43 de la tabla. Descanse todas las filas se muestran bien. – Tarang
Este problema me está haciendo perder mucho sueño, ¿alguien tiene buenas ideas? – marchinram