Swift4.0响应系统内部Set方法

响应系统内部Set方法

UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];
    if ([statusBar respondsToSelector:@selector(setBackgroundColor:)]) {
        statusBar.backgroundColor = color;
    }

你可能感兴趣的:(Swift4.0响应系统内部Set方法)