Вот как я загружаю ячейку:
zimmerCell = (ZimmerCell*)[tableView dequeueReusableCellWithIdentifier:@"ZimmerCell"];
if (zimmerCell == nil) {
ZimmerCell* loadedCell;
loadedCell = [[[NSBundle mainBundle] loadNibNamed:@"ZimmerCell" owner:self options:nil] objectAtIndex:0];
zimmerCell = [loadedCell retain];
[zimmerCell prepare];
}
return zimmerCell;
Работает при первом открытии таблицы.Когда я выхожу из контроллера представления и снова его ввожу, происходит сбой со следующим:
* Завершение приложения из-за необработанного исключения «CALayerInvalidGeometry», причина: «CALayer bounds содержит NaN: [00;nan 7.27683e-38] '* Стек вызовов при первом броске: (0 CoreFoundation 0x01a44be9 exceptionPreprocess + 185 1 libobjc.A.dylib
0x01b995c2 objc_exception_throw + 47 2 CoreFoundation
0x019fx628: format: arguments:] + 136 3
CoreFoundation 0x019fd59a + [Повышение NSException: формат:] + 58 4 QuartzCore
0x008b63ee _ZL16CALayerSetBoundsP7CALayerRKN2CA4RectEb + 227 5
021B0 0 0 0 0 0 0 6 0 6 0 6 6 6 6 6 6 6 6 0 6 0 6 0 6 0 6 0 6 0 6 6 6 6 0 6 0 6 0 6 0 6 0 6 0 6 0 6 0 6 6 6 6 0 6 0 6 6 6 6 6 6 0 6 0 6 0 6 0 6 0 6 0 6 0 6 0 0 6 0 6 0 6 0 6 0 6 6 6 0 6 0 6 0 6 0 47 0 6 0 6 0 6 0 6 0 6 0 6 0 6 0 6 У- [UIView _createLayerWithFrame:] + 401 7 UIKit 0x0121a13b UIViewCommonInitWithFrame + 421 8 UIKit
0x0121b063 - [UIView initWithFrame:] + 113 9 UIKit
0x013;] + 62 11 UIKit
0x013e0265 - [UIClassSwapper initWithCoder:] + 237 12 UIKit
0x014c69e4 UINibDecoderDecodeObjectForValue + 2592 13 UIKit
0x014c7693 - время для использования в течение 22 дней: вы не можете получить еще большеinitWithCoder:] + 212 15 UIKit
0x014c69e4 UINibDecoderDecodeObjectForValue + 2592 16 UIKit * тысяча двадцать-две * 0x014c62dc UINibDecoderDecodeObjectForValue + 792 17 UIKit
0x014c7693 - [UINibDecoder decodeObjectForKey:] + 398 18 UIKit
0x013df200 - [UINib instantiateWithOwner: варианты:] + 804 19 UIKit
0x013e1081 - [NSBundle (UINSBundleAdditions) loadNibNamed: владелец: опции:] + 168 20 PrivatQuadrat * тысячу двадцать-шесть * 0x00021401 - [ErweitertViewController Tableview: cellForRowAtIndexPath:] + 202 21 UIKit 0x0125d7fa - [UITableView (UITableViewInternal) _createPreparedCellForGlobalRow: withIndexPath:] + 634 22 UIKit 0x0125377f - [UITableView (UITableViewInternal) _createPreparedCellForGlobalRow:] + 75 23 UIKit 0x01268450 - [UITableView (_UITableViewPrivate) _updateVisibleCellsNow:] + тысячу пятьсот шестьдесят один 24 UIKit 0x01260538 - [UITableView layoutSubviews] + 242 25 QuartzCore 0x008bc451 - [CALayerlayoutSublayers] + 181 26 QuartzCore
0x008bc17c CALayLayoutIfNeeded + 220 27 QuartzCore
0x008b537c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310 28 QuartzCore 0x008b50d0 _ZN2CA11Transaction6commitEv + 292 29 QuartzCore 0x008e57d5 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99 30 CoreFoundation 0x01a25fbb __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION * тысяча двадцать-девять + 27 31 CoreFoundation 0x019bb0e7 __CFRunLoopDoObservers + 295 32 CoreFoundation 0x01983bd7 __CFRunLoopRun + тысячу пятьсот семьдесят-пять 33 CoreFoundation 0x01983240 CFRunLoopRunSpecific + 208 34 CoreFoundation * +1030 * 0x01983161 CFRunLoopRunInMode +97 35 графических сервисов
0x02487268 GSEventRunModal + 217 36 графических сервисов
0x0248732d GSEventRun + 115 37 UIKit
0x011f842e UIApplicationMain + 1160 38 PrivatQuadrat
0x00002135 main + 0x00002135 main + 0x00002135 10 + 0xx00002135 main + 0x00002135 10 + 0xx00002135 main + 0x00002135 main + 1021037 * Есть идеи?