background to foreground

2017. 4. 27. 18:01Programming/Swift

반응형

    override func viewDidLoad() {

        super.viewDidLoad()

        NotificationCenter.default.addObserver(self, selector: #selector(willEnterForeground), name: .UIApplicationWillEnterForeground, object: nil)

    }

    

    func willEnterForeground() {

        // do stuff

        print("complete TEST")

        

    } 


반응형