Memory not being released for MKMapView w/ ARC

前端 未结 3 1973
悲哀的现实
悲哀的现实 2021-01-02 07:58

I have a custom UIView called ActivityDetailView that I instantiate and then add to a scrollview within a parent view controller. When this custom

3条回答
  •  礼貌的吻别
    2021-01-02 08:34

    You are probably facing a problem with cache.

    If you are using a lot of images maybe a good option is to remove this images from the xib and add it using code. Or if you load the images using [UIImage imageNamed:@""]

    But use something like that:

    NSData* dataImg = [NSData dataWithContentsOfFile:@"yourfile.png"];
    UIImage* img = [UIImage imageWithData:dataImg];
    

    To better help I need to know how you start your tables and also the others features.

提交回复
热议问题