---
title: "NSTimer"
author: "修博龙泉"
date: "2012-10-22T14:06:30Z"
tags: []
categories: ["移动开发"]
slug: "nstimer"
draft: false
lastmod: "2012-10-22T14:06:40Z"
id: 1702972
url: "https://longquan.iteye.com/blog/1702972"
---

 NSTimer *timer  = [[[NSTimer alloc]init]autorelease];
    timer =  [NSTimer scheduledTimerWithTimeInterval:3.0 target:self selector:@selector(function:) userInfo:nil repeats:YES];