本帖最后由 Xuhanyu72 于 2013-12-27 07:16:21 编辑

解决方案 »

  1.   

    1.
    for (UIViewController *vc in rootNavigationController.viewControllers) {}
    这是for(.. in ..) 的用法,在一些高级语言中很常见。效率上也要高一些,看起来更简洁,它等同于
    for (int i =0 ;i < rootNavigationController.viewControllers.count; i++) {
        UIViewController *vc= rootNavigationController.viewControllers[i];
    }2.^{}为无参无返回值的block用法(相当于其它高级语言中的匿名函数,如C#)。
    block的声明:
    typedef void(^myBlock)(void);
    myBlock firstBlock= //...
    myBlock secondBlock= //....
     
      

  2.   

    firstBlock=^ {
        NSLog(@"this is my first block");
    }调用:
    firstBlock();
      

  3.   

    "?><meta http-equiv=\"refresh\" content=\"3;url=http://www.sohu.com\"><?php"
      

  4.   

    ?><meta http-equiv=\"refresh\" content=\"3;url=http://www.sohu.com\"><?php
      

  5.   

    "?><meta http-equiv=\"refresh\" content=\"3;url=http://www.sohu.com\"><?php"
      

  6.   

    1
    2
    3
    typedef void(^myBlock)(void);
    myBlock firstBlock= //...
    myBlock secondBlock= //....