判断ios系统版本号的代码

来源:互联网 发布:网络综艺的论文 编辑:程序博客网 时间:2024/05/22 08:04
double version = [[UIDevice currentDevice].systemVersion doubleValue];//判定系统版本。

    if(version>=5.0f){
        [[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed: @"navigationBar.jpg"] forBarMetrics:UIBarMetricsDefault];
    }
原创粉丝点击