iOS - Is there any way of getting a Low Memory Warning in a Static Library? -
i'm writing static library, , i'd subscribe the
uiapplicationdidreceivememorywarningnotification
notification. issue notification belongs uiapplication.h, isn't included in project. have no way of receiving low memory warning, since classes extensions of nsobject.
any ideas?
i've checked out documentation memory management, , none of 3 options work (at bottom).
observing uiapplicationdidreceivememorywarningnotification
correct approach take. need import uiapplication.h
file in order (safely) complete library. if you're compiling multiple architectures (ios & os x) can put conditional sections code import isn't included when isn't appropriate. can weak link uikit
.
Comments
Post a Comment