//移除所有子視圖
//讓系統(tǒng)幫你遍歷父視圖的所有子視圖
[self.view.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
//手動(dòng)遍歷父視圖上的所有子視圖
for(UIView *view in self.view.subviews) {
[view removeFromSuperview];
}
arc4random()%130+51;
self.view.frame
[UIScreen mainScreen]bounds;
#import 導(dǎo)入一個(gè)頭文件,獲取該頭文件中類的定義——方法和屬性
@class ?告訴編譯器有這么一個(gè)類,具體這個(gè)類怎么定義的一無所知