At the moment in my app when a user exits to a UIWebView then comes back the app shows them a rating pop up. I do this in the if
statement of my method.
- (void)viewWillDisappear
{
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil];
if (self.appExitedToWebView) {
[self.presentationController showAdvertsWithOfferID:self.offerDetailViewController.offer.offerID completionBlock:nil];
}
}
However, I am wanting to only show the rating if the user has been on the UIWebView for over 15 minutes. How would I add this dependency on my method? I am guessing it is something to do with NSTimer
?