dealloc on Background Thread

前端 未结 4 1734
北荒
北荒 2021-01-18 22:55

Is it an error to call dealloc on a UIViewController from a background thread? It seems that UITextView (can?) eventually call _

4条回答
  •  梦毁少年i
    2021-01-18 23:14

    The second post here had useful info, but their answer didn't work for me.

    UIWebView in multithread ViewController

    It also seems that this may have been addressed in iPhone OS 4, but not sure.

    I ended up not releasing my UIWebView in the controller's dealloc when [NSThread isMainThread] was NO. Would rather leak than crash (until I get a better solution).

提交回复
热议问题