logo头像
Snippet 博客主题

NO Title!

更新图标

  1. 1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    func changeAppIcon(name:String?){
    if #available(iOS 10.3, *) {
    if !UIApplication.shared.supportsAlternateIcons {
    return
    }
    UIApplication.shared.setAlternateIconName(name) { (error) in
    if (error != nil) {
    print("更换图标失败: \(error!)")
    }
    }
    } else {
    return
    }
    }
  2. info