ios - Invalidate NSTimer inside UIView sub class -
i'm looking solution i'm using nstimer inside uiview subclass. if try performsegue view controller, keeps running in background. can me issue ?
nstimer must declared property in uiview subclass may accessible in uiviewcontroller referencing view.
@property (nonatomic, strong) nstimer *mytimer;
while performing segue.
- (void)prepareforsegue:(uistoryboardsegue *)segue sender:(id)sender{ [self.mycustomview.mytimer invalidate]; }
Comments
Post a Comment