会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
邸伟男
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
2016年12月23日
熟练使用git命令
摘要: git工作流程图: 下面是我整理的常用 Git 命令清单。几个专用名词的译名如下: Workspace:工作区 Index / Stage:暂存区 Repository:仓库区(或本地仓库) Remote:远程仓库 一、新建代码库 二、配置 Git的设置文件为.gitconfig,它可以在用户主目录
阅读全文
posted @ 2016-12-23 10:26 D-Ben
阅读(1579)
评论(0)
推荐(0)
2015年6月5日
iOS开发 创建单例模式
摘要: + (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)
iOS开发 判断用户是否开启了热点
摘要: - (BOOL)achiveUserHotspotOpening{ return [UIApplication sharedApplication].statusBarFrame.size.height != 20.}
阅读全文
posted @ 2015-06-05 16:24 D-Ben
阅读(685)
评论(0)
推荐(0)
iOS开发 判断用户是否开启了定位
摘要: - (BOOL)achiveUserLocationStart { CLAuthorizationStatus status = [CLLocationManager authorizationStatus]; if (kCLAuthorizationStatusDenied == status |...
阅读全文
posted @ 2015-06-05 16:17 D-Ben
阅读(692)
评论(0)
推荐(0)
iOS开发 判断代理以及代理方法是否有人遵循
摘要: if (self.delegate && [self.delegaterespondsToSelector:@selector]) { return YES;}
阅读全文
posted @ 2015-06-05 15:39 D-Ben
阅读(825)
评论(0)
推荐(0)
iOS开发 UIPanGestureRecognizer手势抽象类
摘要: UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panIt:)]; // 初始化手势类[view addGestureRecognize...
阅读全文
posted @ 2015-06-05 14:37 D-Ben
阅读(292)
评论(0)
推荐(0)
iOS开发 tabBarController选中状态
摘要: self.tabBarController.selectedIndex = 0; // 默认是0;
阅读全文
posted @ 2015-06-05 10:39 D-Ben
阅读(931)
评论(0)
推荐(0)
iOS开发 设置状态栏样式
摘要: [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:NO];
阅读全文
posted @ 2015-06-05 10:33 D-Ben
阅读(133)
评论(0)
推荐(0)
iOS开发 判断扫码是否为有效网址
摘要: - (BOOL)achiveStringWithWeb:(NSString *)infor{ NSString *emailRegex = @"[a-zA-z]+://.*"; NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"S...
阅读全文
posted @ 2015-06-05 10:24 D-Ben
阅读(191)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
公告