JCAppManager.swift 516 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // JCAppManager.swift
  3. // JChat
  4. //
  5. // Created by deng on 2017/6/23.
  6. // Copyright © 2017年 HXHG. All rights reserved.
  7. //
  8. import UIKit
  9. class JCAppManager {
  10. static func openAppSetter() {
  11. let url = URL(string: UIApplication.openSettingsURLString)
  12. if UIApplication.shared.canOpenURL(url!) {
  13. UIApplication.shared.openURL(url!)
  14. }
  15. }
  16. }
  17. var isIPhoneX: Bool {
  18. if UIScreen.main.bounds.height > 736 {
  19. return true
  20. } else {
  21. return false
  22. }
  23. }