ios 视图加载Window上
2018-08-16 本文已影响24人
陆壹吱吱
UIWindow * window = [[[UIApplication sharedApplication] delegate] window];
selectOneView = [[UIView alloc] initWithFrame:CGRectMake(50*W, 0, WIDTH - 50*W, HEIGHT)];
selectOneView.backgroundColor = [UIColor whiteColor];
[windowaddSubview:selectOneView];