다음은 호출 코드입니다.호출하는 것을 시뮬레이트 할 수 없습니다. applicationDidReceiveMemoryWarning :?
[[NSNotificationCenter defaultCenter] postNotificationName:UIApplicationDidReceiveMemoryWarningNotification
object:[UIApplication sharedApplication]];
UIApplicationDelegate
에서 applicationDidReceiveMemoryWarning:
을 호출 할 수 없습니다.
뭐가 잘못 되었나요?
위임 메서드가 호출되지 않았습니까? 나는 많은 예제가 @ "UIApplicationDidReceiveMemoryWarningNotification"과 같이 알림 이름을 문자열로 만든 것을 보았습니다. 그 상수는 아마도 똑같은 것이기 때문에 정말로 중요하다고 생각하지 않습니다. – raidfive
심지어 NSString으로 변경 되어도 작동하지 않습니다. – Forrest