摘要: 下载地址:https://github.com/shicang1990/SCNavTabBarController 阅读全文
posted @ 2015-10-25 23:16 BN笨的很想飞 阅读(436) 评论(0) 推荐(0) 编辑
摘要: _match.textColor = [UIColor redColor]; _match.layer.borderColor = [[UIColor redColor] CGColor]; _match.layer.borderWidth = 1.0; _match.lay... 阅读全文
posted @ 2015-10-25 21:57 BN笨的很想飞 阅读(544) 评论(0) 推荐(0) 编辑
摘要: ios:开始判断星期几 传入:NSDate *data = [NSDate date];- (NSString*)weekdayStringFromDate:(NSDate*)inputDate { NSArray *weekdays = [NSArray arrayWithObjects: [... 阅读全文
posted @ 2015-10-23 21:38 BN笨的很想飞 阅读(421) 评论(0) 推荐(0) 编辑
摘要: github push错误fatal: unable to access 'https://github.com/xuzhenguo/authorize.git/': The requested URL returned error: 403解决方法:vim .git/config修改前[remot... 阅读全文
posted @ 2015-09-09 22:19 BN笨的很想飞 阅读(21808) 评论(1) 推荐(1) 编辑
摘要: help.h//通过这个方法可以获取倒授权登陆的完整的拼接好的接口+(NSURL*)getAuthorizeURL;help.m+(NSURL *)getAuthorizeURL{// 一个字典 Key value// 基本URL //SINA_APP_KEY 为URL公共部分 NSDicti... 阅读全文
posted @ 2015-09-09 20:07 BN笨的很想飞 阅读(947) 评论(0) 推荐(0) 编辑
摘要: //从相册里面选择照片-(void)selectPhoto{// 1.创建UIImagePickerController UIImagePickerController *pickerVc = [[UIImagePickerController alloc]init];// 2.设置从相册选择... 阅读全文
posted @ 2015-09-09 19:33 BN笨的很想飞 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1.声明单例对象在.h文件+(SingleCase *)sharedSingleCase; 2.实现单例在.m文件SingleCase * singleCase = nil;+(SingleCase *)sharedSingleCase{ static dispatch_once_t onceT... 阅读全文
posted @ 2015-09-07 16:41 BN笨的很想飞 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 方法一:在表格视图服用时使用: UIView *backView = [[UIView alloc] initWithFrame:cell.frame]; cell.selectedBackgroundView = backView; cell.selected... 阅读全文
posted @ 2015-09-06 17:43 BN笨的很想飞 阅读(201) 评论(0) 推荐(0) 编辑
摘要: //去掉UItableview headerview黏性(sticky)- (void)scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat sectionHeaderHeight = 250; //section的高度 if (scr... 阅读全文
posted @ 2015-09-06 10:15 BN笨的很想飞 阅读(181) 评论(0) 推荐(0) 编辑
摘要: [view addSubView: scrollView];scrollView.userInteractionEnabled = NO;[view addGestureRecognizer: scrollView.panGestureRecognizer]; 阅读全文
posted @ 2015-09-05 22:01 BN笨的很想飞 阅读(423) 评论(0) 推荐(0) 编辑