Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COI disagree with your suggestions. It's perfectly fine to register for the `UIApplicationWillEnterForegroundNotification` if you want a different object to be informed about the event. In fact, it can make a much better design. I agree with your assumption about the cause of the issue, though. The original poster must make sure to only add the view controller _once_ to the notification center and not every time the app comes to the foreground or goes to the background.
      singulars
    2. COI really like this way using the NSNotifactionCenter because i can update the viewcontroller i want to update. I don't what you mean with adding it once to the notification center. Whats the best place to put in the nsnotification center. Actually it is in the view controller, could this be the problem? Should i put it to an own function? perhaps something which would only be called one time? do you have an suggestion for me?
      singulars
    3. COI see, using this approach is fine, I made a wrong assumption. You must ensure that you only call [[NSNotificationCenter defaultCenter] addObserver:...] once. So, maybe place this call in your controllers viewDidLoad: method, and make 100% sure that you remove the controller from the defaultCentre when the controller is destroyed (by using [[NSNotificationCenter defaultCenter] removeObserver:...]. Where are you currently calling [[NSNotificationCenter defaultCenter] addObserver:...]?
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload