Skip to content
This repository has been archived by the owner on Apr 11, 2021. It is now read-only.

Underline Height Not Supported in Pod and Crashing When Used From File #48

Open
ajinkyap7 opened this issue Apr 19, 2020 · 0 comments
Open

Comments

@ajinkyap7
Copy link

Hi,

Thanks for the Library. It's really useful.

I was trying to set the underline height of the segment using the Pod but it seems that it is not available in the Pod. I tried using the ScrollableSegmentedControl.swift file directly but the app crashes after initializing the segment control. Here is the stack trace of the crash I am getting (I have replaced my actual project name with <Project_Name>):

2020-04-19 14:09:06.852622+0530 <Project_Name>[1824:49590] -[_TtGCs18_DictionaryStorageaSo21NSAttributedStringKeyP__$ imageWithRenderingMode:]: unrecognized selector sent to instance 0x6000025fbcf0 2020-04-19 14:09:06.897516+0530 <Project_Name>[1824:49590] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_TtGCs18_DictionaryStorageaSo21NSAttributedStringKeyP__$ imageWithRenderingMode:]: unrecognized selector sent to instance 0x6000025fbcf0' *** First throw call stack: ( 0 CoreFoundation 0x00007fff23c7127e __exceptionPreprocess + 350 1 libobjc.A.dylib 0x00007fff513fbb20 objc_exception_throw + 48 2 CoreFoundation 0x00007fff23c91fd4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132 3 CoreFoundation 0x00007fff23c75c4c ___forwarding___ + 1436 4 CoreFoundation 0x00007fff23c77f78 _CF_forwarding_prep_0 + 120 5 ScrollableSegmentedControl 0x00000001049fd901 $s26ScrollableSegmentedControlAAC13insertSegment4with2atySo7UIImageC_SitF + 129 6 <Project_Name> 0x0000000103d63ba6 $s12<Project_Name>ViewControllerC15setUpPageHeaderyyF + 2022 7 <Project_Name> 0x0000000103d632e4 $s12<Project_Name>ViewControllerC11viewDidLoadyyF + 132 8 <Project_Name> 0x0000000103d633ab $s12<Project_Name>ViewControllerC11viewDidLoadyyFTo + 43 9 UIKitCore 0x00007fff47a0ef01 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 83 10 UIKitCore 0x00007fff47a13e5a -[UIViewController loadViewIfRequired] + 1084 11 UIKitCore 0x00007fff47a14277 -[UIViewController view] + 27 12 UIKitCore 0x00007fff479633dd -[UINavigationController _startCustomTransition:] + 1039 13 UIKitCore 0x00007fff4797930c -[UINavigationController _startDeferredTransitionIfNeeded:] + 698 14 UIKitCore 0x00007fff4797a721 -[UINavigationController __viewWillLayoutSubviews] + 150 15 UIKitCore 0x00007fff4795b553 -[UILayoutContainerView layoutSubviews] + 217 16 UIKitCore 0x00007fff485784bd -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2478 17 QuartzCore 0x00007fff2b131db1 -[CALayer layoutSublayers] + 255 18 QuartzCore 0x00007fff2b137fa3 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 517 19 QuartzCore 0x00007fff2b1438da _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 80 20 QuartzCore 0x00007fff2b08a848 _ZN2CA7Context18commit_transactionEPNS_11TransactionEd + 324 21 QuartzCore 0x00007fff2b0bfb51 _ZN2CA11Transaction6commitEv + 643 22 QuartzCore 0x00007fff2b0c04ba _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 76 23 CoreFoundation 0x00007fff23bd3867 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 24 CoreFoundation 0x00007fff23bce2fe __CFRunLoopDoObservers + 430 25 CoreFoundation 0x00007fff23bce97a __CFRunLoopRun + 1514 26 CoreFoundation 0x00007fff23bce066 CFRunLoopRunSpecific + 438 27 GraphicsServices 0x00007fff384c0bb0 GSEventRunModal + 65 28 UIKitCore 0x00007fff48092d4d UIApplicationMain + 1621 29 <Project_Name> 0x0000000103d7851b main + 75 30 libdyld.dylib 0x00007fff5227ec25 start + 1 31 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException

This file works fine in the Demo project. Am I doing something different? Any help would be appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant