CocoaPods trunk is moving to be read-only. Read more on the blog, there are 13 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Oct 2017 |
Maintained by Tangent.
A tool for monitoring objc message calls.
Use method listen.
[self listen: @selector(touchesBegan:withEvent:) with:^(NSArray * _Nonnull parameters) {
NSLog(@"Touches began");
}];listen(#selector(ViewController.touchesBegan(_:with:))) { _ in
print("Touches began")
}[self listen: @selector(tableView:didSelectRowAtIndexPath:) in:@protocol(UITableViewDelegate) with:^(NSArray * _Nonnull parameters) {
if (parameters.count != 2) return;
NSIndexPath *indexPath = parameters[1];
NSLog(@"Did selected row %ld", (long)indexPath.row);
}];listen(#selector(UITableViewDelegate.scrollViewDidScroll(_:)), in: UITableViewDelegate.self).subscribe(next: { parameters in
guard let tableView = parameters.first as? UITableView else { return }
print(tableView.contentOffset.y)
})
_tableView.delegate = selfThe MIT License (MIT)