RWDropdownMenu
RWDropdownMenu copied to clipboard
Update to Swift 3?
Swift 3 has been released for a while now. I tried using the pod in Xcode 8, and my app crashed when I tried to show the dropdown menu.
Error message:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_SwiftValue text]: unrecognized selector sent to instance 0x600000244290'
And the stack trace:
*** First throw call stack:
(
0 CoreFoundation 0x0000000108dee34b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000107b7421e objc_exception_throw + 48
2 CoreFoundation 0x0000000108e5df34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x0000000108d73c15 ___forwarding___ + 1013
4 CoreFoundation 0x0000000108d73798 _CF_forwarding_prep_0 + 120
5 RWDropdownMenu 0x0000000107534ea9 -[RWDropdownMenu collectionView:cellForItemAtIndexPath:] + 345
6 UIKit 0x000000010adcadd0 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 467
7 UIKit 0x000000010adcabf7 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 35
8 UIKit 0x000000010add00cf -[UICollectionView _updateVisibleCellsNow:] + 4803
9 UIKit 0x000000010add5d63 -[UICollectionView layoutSubviews] + 313
10 UIKit 0x000000010a54d344 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
11 QuartzCore 0x000000010a0dfcdc -[CALayer layoutSublayers] + 146
12 QuartzCore 0x000000010a0d37a0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
13 QuartzCore 0x000000010a0d361e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
14 QuartzCore 0x000000010a06162c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
15 QuartzCore 0x000000010a08e713 _ZN2CA11Transaction6commitEv + 475
16 UIKit 0x000000010a4b3878 _afterCACommitHandler + 346
17 CoreFoundation 0x0000000108d92e17 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
18 CoreFoundation 0x0000000108d92d87 __CFRunLoopDoObservers + 391
19 CoreFoundation 0x0000000108d77b9e __CFRunLoopRun + 1198
20 CoreFoundation 0x0000000108d77494 CFRunLoopRunSpecific + 420
21 GraphicsServices 0x000000010d799a6f GSEventRunModal + 161
22 UIKit 0x000000010a488f34 UIApplicationMain + 159
23 MyApp 0x000000010638624f main + 111
24 libdyld.dylib 0x000000010c6c468d start + 1
25 ??? 0x0000000000000001 0x0 + 1
)
There is also the possibility of this being caused by something else, like using iOS 10. But anyway, can you fix this?
I ran my app on iOS 8.1 and saw that the same error occured on RWDropdownMenu.m line 298.