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

[self valueForKeyPath:@"m_WCTimeLineIndexPath"];报错 #23

Open
iosluoyang opened this issue Apr 12, 2018 · 0 comments
Open

[self valueForKeyPath:@"m_WCTimeLineIndexPath"];报错 #23

iosluoyang opened this issue Apr 12, 2018 · 0 comments

Comments

@iosluoyang
Copy link

在CHOptimizedMethod2Hook 发现页 heightforrow的方法的时候,有这么一句代码:
NSIndexPath *timelineIndexPath = [self valueForKeyPath:@"m_WCTimeLineIndexPath"];
是使用kvc获取朋友圈cell的indexpath,但是发现一直在编译过程报错,错误信息如下:

Receiver type 'FindFriendEntryViewController' for instance message is a forward declaration

这该怎么解决呢?

PS:网上查了一下iOS逆向工程获取成员变量的方法,参考https://blog.csdn.net/u010545480/article/details/75043858

但是三种方法都试过了,都不行,望大神赐教

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