美文网首页
2019-05-09 星期四 2

2019-05-09 星期四 2

作者: 老布威利斯 | 来源:发表于2019-05-09 09:47 被阅读0次

    这是一种匿名函数的写法,需要在匿名函数外面加一个小括号

     UIButton*wanderButton = ({
            UIButton*btn = [UIButtonbuttonWithType:UIButtonTypeCustom];
            btn;
    });
    

    wonder:

    • verb
    • to think about something that you are not sure and try to guess what is true.
    • what are they going to do now? I wonder

    wonder:

    • verb
    • to walk slowly across an area
    • I will wander around the mall for half an hour

    相关文章

      网友评论

          本文标题:2019-05-09 星期四 2

          本文链接:https://www.haomeiwen.com/subject/gguioqtx.html