摘要: git工作流程图: 下面是我整理的常用 Git 命令清单。几个专用名词的译名如下: Workspace:工作区 Index / Stage:暂存区 Repository:仓库区(或本地仓库) Remote:远程仓库 一、新建代码库 二、配置 Git的设置文件为.gitconfig,它可以在用户主目录 阅读全文
posted @ 2016-12-23 10:26 D-Ben 阅读(1577) 评论(0) 推荐(0) 编辑
摘要: + (id)defaultNSObjectName{ staticid defaultNSObjectName =nil; staticBOOLtoken=NO; if (!token) { token = YES; defaultNSObjectName = [[NSObject a... 阅读全文
posted @ 2015-06-05 16:40 D-Ben 阅读(146) 评论(0) 推荐(0) 编辑
摘要: - (BOOL)achiveUserHotspotOpening{ return [UIApplication sharedApplication].statusBarFrame.size.height != 20.} 阅读全文
posted @ 2015-06-05 16:24 D-Ben 阅读(661) 评论(0) 推荐(0) 编辑
摘要: - (BOOL)achiveUserLocationStart { CLAuthorizationStatus status = [CLLocationManager authorizationStatus]; if (kCLAuthorizationStatusDenied == status |... 阅读全文
posted @ 2015-06-05 16:17 D-Ben 阅读(686) 评论(0) 推荐(0) 编辑
摘要: if (self.delegate && [self.delegaterespondsToSelector:@selector]) { return YES;} 阅读全文
posted @ 2015-06-05 15:39 D-Ben 阅读(817) 评论(0) 推荐(0) 编辑
摘要: UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panIt:)]; // 初始化手势类[view addGestureRecognize... 阅读全文
posted @ 2015-06-05 14:37 D-Ben 阅读(289) 评论(0) 推荐(0) 编辑
摘要: self.tabBarController.selectedIndex = 0; // 默认是0; 阅读全文
posted @ 2015-06-05 10:39 D-Ben 阅读(930) 评论(0) 推荐(0) 编辑
摘要: [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:NO]; 阅读全文
posted @ 2015-06-05 10:33 D-Ben 阅读(128) 评论(0) 推荐(0) 编辑
摘要: - (BOOL)achiveStringWithWeb:(NSString *)infor{ NSString *emailRegex = @"[a-zA-z]+://.*"; NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"S... 阅读全文
posted @ 2015-06-05 10:24 D-Ben 阅读(187) 评论(0) 推荐(0) 编辑