zoukankan      html  css  js  c++  java
  • 使用Storyboard 创建ViewController

    NewImage



    #pragma mark --单元格点击方法

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

    {

        DemoControl *arr = self.datalist[indexPath.row];

        

        if (arr.ControlName == @"UIButton")

        {

            //navigation controller压入到栈中

            //UIButtonController *cButton =[[UIButtonController alloc] init];

            //[self.navigationController pushViewController:cButton animated:YES];

            

            

            //使用Storyboard种的布局,跟当前的Controller进行绑定

            UIStoryboard *storyboard=[UIStoryboardstoryboardWithName:@"Main"bundle:nil];

            UIButtonController *StButtonController=[storyboard instantiateViewControllerWithIdentifier:@"StButtonController"];

            

            [self.navigationControllerpushViewController:StButtonController animated:YES];

        }

        

    }

  • 相关阅读:
    iOS9 HTTP 不能正常使用的解决办法
    IOS UIWebView的一些用法总结
    顺序查找
    循环队列
    队列的链式存储实现
    栈的链式存储实现
    顺序表的实现
    MessageBox函数
    二分法查找
    冒泡排序
  • 原文地址:https://www.cnblogs.com/kfsmqoo/p/5449804.html
Copyright © 2011-2022 走看看