Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select collection cell or tableview cell #14

Open
hassanmohsen opened this issue May 17, 2018 · 0 comments
Open

select collection cell or tableview cell #14

hassanmohsen opened this issue May 17, 2018 · 0 comments

Comments

@hassanmohsen
Copy link

I have problem when i active swizzling by this line

MOLH.shared.activate(true)

with some collection view or table view selection give me this error

2018-05-17 12:48:19.391146+0200 TestApp[3370:61813] -[UIButton _tvUpdateContentBackdropView]: unrecognized selector sent to instance 0x7f9993f36460
2018-05-17 12:48:19.409001+0200 TestApp[3370:61813] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIButton _tvUpdateContentBackdropView]: unrecognized selector sent to instance 0x7f9993f36460'
*** First throw call stack:
(
0 CoreFoundation 0x000000010957f12b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000108c13f41 objc_exception_throw + 48
2 CoreFoundation 0x0000000109600024 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 UIKit 0x000000010ad20f51 -[UIResponder doesNotRecognizeSelector:] + 295
4 CoreFoundation 0x0000000109501f78 forwarding + 1432
5 CoreFoundation 0x0000000109501958 _CF_forwarding_prep_0 + 120
6 UIKit 0x000000010b81be88 -[UITextField layoutSubviews] + 264
7 MOLH 0x00000001084ef881 _T0So9UIControlC4MOLHE18cstmlayoutSubviewsyyF + 33
8 MOLH 0x00000001084ef8c4 _T0So9UIControlC4MOLHE18cstmlayoutSubviewsyyFTo + 36
9 UIKit 0x000000010af7d81c -[UINib instantiateWithOwner:options:] + 2425
10 UIKit 0x000000010ac943ff -[UIViewController _loadViewFromNibNamed:bundle:] + 383
11 UIKit 0x000000010ac94d2b -[UIViewController loadView] + 177
12 UIKit 0x000000010ac9505c -[UIViewController loadViewIfRequired] + 195
13 UIKit 0x000000010ac958b9 -[UIViewController view] + 27
14 UIKit 0x000000010acc794a -[UINavigationController _startCustomTransition:] + 954
15 UIKit 0x000000010acde3b4 -[UINavigationController _startDeferredTransitionIfNeeded:] + 686
16 UIKit 0x000000010acdf6d3 -[UINavigationController __viewWillLayoutSubviews] + 150
17 UIKit 0x000000010af3a4e2 -[UILayoutContainerView layoutSubviews] + 231
18 UIKit 0x000000010abbea6d -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1439
19 QuartzCore 0x000000010a92761c -[CALayer layoutSublayers] + 159
20 QuartzCore 0x000000010a92b7ad _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 401
21 QuartzCore 0x000000010a8b286c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 364
22 QuartzCore 0x000000010a8df946 _ZN2CA11Transaction6commitEv + 500
23 QuartzCore 0x000000010a8e0694 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 76
24 CoreFoundation 0x0000000109521c07 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 23
25 CoreFoundation 0x0000000109521b5e __CFRunLoopDoObservers + 430
26 CoreFoundation 0x0000000109506124 __CFRunLoopRun + 1572
27 CoreFoundation 0x0000000109505889 CFRunLoopRunSpecific + 409
28 GraphicsServices 0x00000001121059c6 GSEventRunModal + 62
29 UIKit 0x000000010aaed5d6 UIApplicationMain + 159
30 Aoun 0x0000000107d8c247 main + 55
31 libdyld.dylib 0x000000010ea51d81 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

but with menu tableView not get this error

and when i comment this line in active method
swizzle(class:UIControl.self, sel: #selector(UIControl.awakeFromNib), override: #selector(UIControl.cstmlayoutSubviews))

the problem was solving , but what will happen when this line is still commented ?

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

No branches or pull requests

1 participant