按键计时器


计时小Demo,需要一直触摸方可一直计时,停止触摸事件计时停止.
资源截图
代码片段和文件信息
//
//  AppDelegate.m
//  TouchTime
//
//  Created by ylcm2015 on 15/4/23.
//  Copyright (c) 2015年 ylcm_lxf. All rights reserved.
//

#import “AppDelegate.h“
#import “UMSocial.h“
@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    
    [UMSocialData setAppKey:@“5539b809e0f55acb4e001bd6“];
    
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application {
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks disable timers and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application {
    // Use this method to release shared resources save user data invalidate timers and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application {
    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application {
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-04-28 17:22  TouchTime
     文件        6148  2015-04-28 17:22  TouchTime.DS_Store
     目录           0  2015-05-12 11:29  __MACOSX
     目录           0  2015-05-12 11:29  __MACOSXTouchTime
     文件         120  2015-04-28 17:22  __MACOSXTouchTime._.DS_Store
     目录           0  2015-04-28 17:23  TouchTime.git
     目录           0  2015-04-23 17:42  TouchTime.gitranches
     文件          15  2015-04-23 17:42  TouchTime.gitCOMMIT_EDITMSG
     文件         137  2015-04-23 17:42  TouchTime.gitconfig
     文件          73  2015-04-23 17:42  TouchTime.gitdescription
     文件          23  2015-04-23 17:42  TouchTime.gitHEAD
     目录           0  2015-04-23 17:42  TouchTime.githooks
     文件         452  2015-04-23 17:42  TouchTime.githooksapplypatch-msg.sample
     文件         896  2015-04-23 17:42  TouchTime.githookscommit-msg.sample
     文件         189  2015-04-23 17:42  TouchTime.githookspost-update.sample
     文件         398  2015-04-23 17:42  TouchTime.githookspre-applypatch.sample
     文件        1642  2015-04-23 17:42  TouchTime.githookspre-commit.sample
     文件        1348  2015-04-23 17:42  TouchTime.githookspre-push.sample
     文件        4951  2015-04-23 17:42  TouchTime.githookspre-rebase.sample
     文件        1239  2015-04-23 17:42  TouchTime.githooksprepare-commit-msg.sample
     文件        3611  2015-04-23 17:42  TouchTime.githooksupdate.sample
     文件       45770  2015-04-24 11:47  TouchTime.gitindex
     目录           0  2015-04-23 17:42  TouchTime.gitinfo
     文件          40  2015-04-23 17:42  TouchTime.gitinfoexclude
     目录           0  2015-05-12 11:29  __MACOSXTouchTime.git
     目录           0  2015-05-12 11:29  __MACOSXTouchTime.gitinfo
     文件         171  2015-04-23 17:42  __MACOSXTouchTime.gitinfo._exclude
     目录           0  2015-04-23 17:42  TouchTime.gitlogs
     文件         171  2015-04-23 17:42  TouchTime.gitlogsHEAD
     目录           0  2015-04-23 17:42  TouchTime.gitlogs
efs
     目录           0  2015-04-23 17:42  TouchTime.gitlogs
efsheads
............此处省略1012个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)