`

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

    博客分类:
  • ios
 
阅读更多
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;
}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics