tags:

views:

27

answers:

0

Hi, i'm creating a pdf reader with all the tipical functionalities: double tap zoom, zoom with the two fingers multiple touch, etc ... I'm using the Instrument tool of xCode to detect memory leaks of my program, and i have a strange entry into my leaked blocks called UIDelayedAction and its size is 48 bytes. This leak appear only if i do a zoom with the two-fingers movement (so with the double tap zoom i have no leaks).
Here there is "my incomplete code" to show how is biuld my scroll view:

CATiledLayer tiledLayer = [CATiledLayer layer];
UIView* personalView=[[UIView alloc] initWithFrame:pageRect];
[personalView.layer addSublayer:tiledLayer];
UIScrollView* scrollView = [[UIScrollView alloc] initWithFrame:pageRect];
[scrollView addSubview:personalView];
[self.view addSubview:scrollView];

Any idea ?