09 2015 档案
摘要:github push错误fatal: unable to access 'https://github.com/xuzhenguo/authorize.git/': The requested URL returned error: 403解决方法:vim .git/config修改前[remot...
阅读全文
摘要:help.h//通过这个方法可以获取倒授权登陆的完整的拼接好的接口+(NSURL*)getAuthorizeURL;help.m+(NSURL *)getAuthorizeURL{// 一个字典 Key value// 基本URL //SINA_APP_KEY 为URL公共部分 NSDicti...
阅读全文
摘要://从相册里面选择照片-(void)selectPhoto{// 1.创建UIImagePickerController UIImagePickerController *pickerVc = [[UIImagePickerController alloc]init];// 2.设置从相册选择...
阅读全文
摘要:1.声明单例对象在.h文件+(SingleCase *)sharedSingleCase; 2.实现单例在.m文件SingleCase * singleCase = nil;+(SingleCase *)sharedSingleCase{ static dispatch_once_t onceT...
阅读全文
摘要:方法一:在表格视图服用时使用: UIView *backView = [[UIView alloc] initWithFrame:cell.frame]; cell.selectedBackgroundView = backView; cell.selected...
阅读全文
摘要://去掉UItableview headerview黏性(sticky)- (void)scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat sectionHeaderHeight = 250; //section的高度 if (scr...
阅读全文
摘要:[view addSubView: scrollView];scrollView.userInteractionEnabled = NO;[view addGestureRecognizer: scrollView.panGestureRecognizer];
阅读全文
摘要:一般我们开发阶段需要很多NSLog 但是在发布的时候我们就需要把NSLog干掉 为了方便我们使用下面判断语句我们开发阶段是DEBUG 上先处于Release#ifdef DEBUG // 处于开发阶段#define HWLog(...) NSLog(__VA_ARGS__)#else // 处于发...
阅读全文
摘要:接收到服务器的响应就会调用- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response;// 获取沙河路径 NSString *caches = [NSSearchPat...
阅读全文

浙公网安备 33010602011771号