定时器NSTimer的用法

    //时间间隔

    NSTimeInterval activeTimeInterval = NETWORK_SEND_ACTIVE_TIME;

    NSTimeInterval otherTimeInterval = NETWORK_SEND_OTHERS_TIME;

    //定时器

    NSTimer *mianTimer;

    mianTimer = [NSTimerscheduledTimerWithTimeInterval:activeTimeInterval target:selfselector:@selector(beginMainTimer:)userInfo:nilrepeats:YES];


Timer methods

 

- (void)beginMainTimer:(NSTimer *)theTimer

{

}

posted @ 2014-02-17 19:41  wisejoker  阅读(239)  评论(0编辑  收藏  举报