09 2015 档案

摘要: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笨的很想飞 阅读(21949) 评论(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笨的很想飞 阅读(959) 评论(0) 推荐(0)
摘要://从相册里面选择照片-(void)selectPhoto{// 1.创建UIImagePickerController UIImagePickerController *pickerVc = [[UIImagePickerController alloc]init];// 2.设置从相册选择... 阅读全文
posted @ 2015-09-09 19:33 BN笨的很想飞 阅读(153) 评论(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笨的很想飞 阅读(180) 评论(0) 推荐(0)
摘要:方法一:在表格视图服用时使用: UIView *backView = [[UIView alloc] initWithFrame:cell.frame]; cell.selectedBackgroundView = backView; cell.selected... 阅读全文
posted @ 2015-09-06 17:43 BN笨的很想飞 阅读(234) 评论(0) 推荐(0)
摘要://去掉UItableview headerview黏性(sticky)- (void)scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat sectionHeaderHeight = 250; //section的高度 if (scr... 阅读全文
posted @ 2015-09-06 10:15 BN笨的很想飞 阅读(189) 评论(0) 推荐(0)
摘要:[view addSubView: scrollView];scrollView.userInteractionEnabled = NO;[view addGestureRecognizer: scrollView.panGestureRecognizer]; 阅读全文
posted @ 2015-09-05 22:01 BN笨的很想飞 阅读(430) 评论(0) 推荐(0)
摘要:一般我们开发阶段需要很多NSLog 但是在发布的时候我们就需要把NSLog干掉 为了方便我们使用下面判断语句我们开发阶段是DEBUG 上先处于Release#ifdef DEBUG // 处于开发阶段#define HWLog(...) NSLog(__VA_ARGS__)#else // 处于发... 阅读全文
posted @ 2015-09-04 21:18 BN笨的很想飞 阅读(165) 评论(0) 推荐(0)
摘要:接收到服务器的响应就会调用- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response;// 获取沙河路径 NSString *caches = [NSSearchPat... 阅读全文
posted @ 2015-09-01 13:46 BN笨的很想飞 阅读(163) 评论(0) 推荐(0)