title: iOS NSNotificationCenter to check whether the app came from background to foreground
body: <p>I have a situation in which i have to intialize an object everytime when it comes from background to foreground and that should be using the NSNotificationCenter not with appdelegate because iam building a static library so there wont be appdelegate with that so please help me in the same.</p>