Skip to content

Instantly share code, notes, and snippets.

@Xummer
Last active August 29, 2015 14:12
Show Gist options
  • Save Xummer/608f68580d91921b87c9 to your computer and use it in GitHub Desktop.
Save Xummer/608f68580d91921b87c9 to your computer and use it in GitHub Desktop.
Cycript 常用
$ cycript -p WeChat
// 不进入省电模式(自动黑屏)
UIApp.idleTimerDisabled = YES
// WeChat
// 获取当前viewController
var vc = [CAppViewControllerManager getCurrentNavigationController].topViewController
// 获取推出的ModuleViewController
var vc = vc.presentedViewController.topViewController
// TableViewInfo 相关
// 获取MMTableViewInfo
var tInfo = [vc valueForKey:"m_tableViewInfo"]
// 获取MMTableViewSectionInfo
var secs = [tInfo valueForKey:"_arrSections"]
var sInfo = secs[0]
// 获取MMTableViewCellInfo
var cells = [secs[0] valueForKey:"_arrCells"]
var cInfo = cells[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment