2
_labelView = ({
UIView * labelView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, _midView.frame.size.width, _midView.frame.size.height)];
for (int i = 0;i < titleArr.count ; i++) {
[labelView addSubview:[self returnLabel:titleArr[i] andFrame:CGRectMake(0, i*_height, self.frame.size.width, _height) andColor:[UIColor whiteColor]]];
}
labelView;
});
爲什麼「labelView」可以通過這個賦值?這種方便的含義是什麼?
'_labelView'的聲明類型是什麼? – dasblinkenlight
我不確定它是否可以 – anhtu
labelView不是什麼,最後一行 – JokerV