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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -