偶然今天碰到的赋值方式 暂时不知道怎么称呼,标记下
self.awesometransition.containerBackgroundView = ({
UIView *bgView = (UIView *)[[[NSBundle mainBundle] loadNibNamed:@"ContainerBackgroundView" owner:nil options:nil] lastObject];
bgView;
});
偶然今天碰到的赋值方式 暂时不知道怎么称呼,标记下
self.awesometransition.containerBackgroundView = ({
UIView *bgView = (UIView *)[[[NSBundle mainBundle] loadNibNamed:@"ContainerBackgroundView" owner:nil options:nil] lastObject];
bgView;
});
本文标题:ObjC特殊赋值方式
本文链接:https://www.haomeiwen.com/subject/xlfpcttx.html
网友评论