Splash screen for watchkit in swift

1.4k views Asked by At

I would like to implement a splash screen for my watch application. After a long check, i haven come to realize there is not a way as for phone and tablet such launchscreen.xib or launch image in info.plist for watch

To implement splash screen, i made a new starting interface, which will only appear when application starts. To do that

for life cycle i have checked this blog

after that in willActivate() func i have implemented

    if first {
        first = false
        var timer = NSTimer.scheduledTimerWithTimeInterval(1, target: self, selector: Selector("update"), userInfo: nil, repeats: false)

    }else{
        first = true
        self.popController()
    }

and my update func

func update() {
    self.pushControllerWithName("someListsController", context: nil)
}

my point is; i want this interface to show only when application starts, and when returning this interface , application to end.

0

There are 0 answers