Post

Replies

Boosts

Views

Activity

Adding UISegmentedControl on UI crashes app on parent dealloc.
Greetings all of you. I got back to app[Objective-C] after some time and ! : Simple thing : when UISegmentedControl has been added to any view and that view will dealloc the app will crash. I have no idea what is causing that. The control might be as a variable, but as soon it will be presented on UI will crash when parent is deallocating. 1 UIKitCore 0xd29c -[UIView(UIKitManual) superview] + 84 2 UIKitCore 0x44174 __UIViewWillBeRemovedFromSuperview + 252 3 UIKitCore 0x8d110 -[UIView(Hierarchy) removeFromSuperview] + 112 4 UIKitCore 0x1c3e74 -[UISegment setObjectValue:] + 916 5 UIKitCore 0x119414 -[UISegment dealloc] + 32 6 libobjc.A.dylib 0x15d8 AutoreleasePoolPage::releaseUntil(objc_object**) + 196 7 libobjc.A.dylib 0x4f80 objc_autoreleasePoolPop + 256 8 QuartzCore 0x4c8e8 CA::Transaction::flush_as_runloop_observer(bool) + 116 9 CoreFoundation 0x91d60 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36 10 CoreFoundation 0x1a2d0 __CFRunLoopDoObservers + 532 11 CoreFoundation 0x7bc7c __CFRunLoopRun + 1048 12 CoreFoundation 0x80ed4 CFRunLoopRunSpecific + 612 13 GraphicsServices 0x1368 GSEventRunModal + 164 14 UIKitCore 0x3a23d0 -[UIApplication _run] + 888 15 UIKitCore 0x3a2034 UIApplicationMain + 340 Please give me your best thoughts.
0
0
428
Feb ’23