在cell中获取父控制器ViewController,然后进行跳页
来源:互联网 发布:手机版如何开淘宝店铺 编辑:程序博客网 时间:2024/05/21 13:59
//获取控制器
- (UIViewController *)viewController
{
for (UIView* next = [selfsuperview]; next; next = next.superview) {
UIResponder *nextResponder = [nextnextResponder];
if ([nextResponderisKindOfClass:[UIViewControllerclass]]) {
return (UIViewController *)nextResponder;
}
}
returnnil;
}
//写个点击事件
{
[[selfviewController].navigationControllerpushViewController:controller animated:YES];
}
0 0
- 在cell中获取父控制器ViewController,然后进行跳页
- 在Storyboard中获取Viewcontroller
- iOS 7:在一般的 ViewController 中使用static cell
- 如何在继承于UITableViewCell的类中获取这个cell得主视图控制器
- iOS在自定义视图(常用于自定义cell)中获取导航控制器上面的当前的控制器对象
- 获取当前控制器ViewController(Navi)
- 在Appdelegate中获取当前的ViewController
- 在导航页面中获取当前viewController
- 在配置文件中获取数据源,然后在hibernate中用sql语句进行查询操作
- iOS开发中,在一般的ViewController中使用static cell
- 在cell中获取自己的tableView
- 在子视图中获取父视图的控制器
- iOS中在View 中获取控制器
- 在子类化cell中取得UITableView所在的ViewController对象
- IOS中ViewController(控制器)的生命周期
- 在ViewController中添加n个子ViewController
- 从storyBoard中获取viewController
- 在iOS中对cell进行局部截图
- 每天一个linux命令(14):head 命令
- Mysql权限控制 - 允许用户远程连接
- Oracle优化08-并行执行
- ORACLE 12C 生产脚本规范
- 条款三十二:在未来时态下发展的程序
- 在cell中获取父控制器ViewController,然后进行跳页
- 利用bottomSheetBehavior
- Gephi启动报错JVM creation failed解决办法
- X86-64寄存器和栈帧
- Android安装步骤
- 每天一个linux命令(15):tail 命令
- HttpClient发送http请求(apache common包)
- 1. 大型网站技术架构论述
- linux下用select实现非阻塞socket