有时候在自定义cell的过程中,当cell中又button的时候,把button的点击时间写在cell中的时候,需要获取到cell的父视图控制器然后push,可以自建一个类,命名为: GetCurrentNaviGationController,在.h文件 中提供一个类方法 +(UIViewController *)viewController:(UIView *)view; 然后在.m中实现 +(UIViewController *)viewController:(UIView *)view{…