i have uilabel
shows countdown , observer:
nsnotificationcenter.defaultcenter().addobserver(self, selector: selector("willenterforeground:"), name:uiapplicationwillenterforegroundnotification, object: nil)
the problem willenterforeground()
fires after view has become visible. if in function put new value label timerlabel.text = "blah"
, user (on returning app foreground) first see value label had on entering background, , after half second label text updated.
is there way update views before become visible?
actually, code working. problem user first sees snapshot taken when app went background. code runs, , real app appears — updated label text value.
so complaining don't way whole snapshot thing works. there not can it, though, snapshot has been made. way set snapshot set value of label as app goes background (and presume that's impossible here, don't know future).
what recommend blank label app goes background. way, @ least, user won't see wrong value.
Comments
Post a Comment