현재 사용자가 UIWebView를 종료 할 때 내 앱에서 앱이 돌아 오면 등급 팝업이 표시됩니다. 나는 나의 방법의 진술 if
에서 이것을한다.NSTimer/시간 의존 방식 사용 방법
- (void)viewWillDisappear
{
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil];
if (self.appExitedToWebView) {
[self.presentationController showAdvertsWithOfferID:self.offerDetailViewController.offer.offerID completionBlock:nil];
}
}
그러나 사용자가 15 분 이상 UIWebView에 있었던 경우에만 등급을 표시하려고합니다. 방법에이 종속성을 어떻게 추가합니까? 나는 그것이 NSTimer
과 관련이 있다고 추측하고 있습니까?
사용할 수있는 것이 기존 방법으로이 적합? –
이 코드를 if 조건에 넣으십시오. –