개발은 너무해

background to foreground 본문

iOS-Develop(Swift)

background to foreground

까칠 평생초보 2017.04.27 18:01

    override func viewDidLoad() {

        super.viewDidLoad()

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

    }

    

    func willEnterForeground() {

        // do stuff

        print("complete TEST")

        

    } 


0 Comments
댓글쓰기 폼