延时调用 数组调用对象方法 移图层到最前面 控制状态栏样式

1、定时器
controller
[self performSelector:@selector(nextQuestion:) withObject:nil afterDelay:0.5];
2、让数组中每个对象调用某个方法
[self.optionsView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)];
3、将一个图层移到最前面
[self.view bringSubviewToFront:self.iconBtn];
4、控制状态栏的样式 重写方法

/**
*  控制状态栏的样式
*/
- (UIStatusBarStyle)preferredStatusBarStyle
{
    // 白色
    return UIStatusBarStyleLightContent;
}

猜你喜欢

转载自invictus-fang.iteye.com/blog/2145319