'import keras.layers' не выдает ни одного модуля с именем keras, но все же прекрасно, если он запускается в cmd

struct DeviceInfo {
struct Orientation {
    // indicate current device is in the LandScape orientation
    static var isLandscape: Bool {
        get {
            return UIDevice.current.orientation.isValidInterfaceOrientation
                ? UIDevice.current.orientation.isLandscape
                : UIApplication.shared.statusBarOrientation.isLandscape
        }
    }
    // indicate current device is in the Portrait orientation
    static var isPortrait: Bool {
        get {
            return UIDevice.current.orientation.isValidInterfaceOrientation
                ? UIDevice.current.orientation.isPortrait
                : UIApplication.shared.statusBarOrientation.isPortrait
        }
    }
}}

swift4 answer: вот как я это делаю,

1.works для всех видов контроллера вида

2. также работает, когда пользователь поворачивает приложение

3.также в первый раз установите приложение

0
задан Aung Khant 31 December 2018 в 01:22
поделиться