2

私の質問はなぜですか

[myButton addTarget:self action:@selector(myAction) forControlEvents:UIControlEventTouchUpInside];

それは保持されず、

mytimer = [NSTimer scheduledTimerWithTimeInterval:1.0f
                                          target:self
                                        selector:@selector(_timerFired:)
                                        userInfo:nil
                                         repeats:YES];

どちらもターゲットの自己を持っているので、一方が保持され、他方が保持されないのはなぜですか。@終わり

4

1 に答える 1