Memory warning after using the UIImagePicker once

后端 未结 3 1909
囚心锁ツ
囚心锁ツ 2021-02-05 13:59

I\'ve referred to this very good reference: https://stackoverflow.com/questions/1282830/uiimagepickercontroller-uiimage-memory-and-more but I\'m having some very serious issues.

3条回答
  •  孤独总比滥情好
    2021-02-05 14:43

    Yes, this happens. The thing to remember is that it's okay to get a memory warning, it doesn't mean you're a bad person, you just need to make sure that your application doesn't crash or get confused in response to the memory warning.

    In particular, you need to understand that the default action of UIViewController is to unload its views if they're not visible, and they won't be visible if the full-screen image picker is showing.

提交回复
热议问题