自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

CornerAndCorner的博客

发现错误请大家多多指教,如果对你有帮助就顶一下吧

  • 博客(16)
  • 收藏
  • 关注

原创 解析数据传参数字典类型的(传服务器上是文本)

[manager.requestSerializersetValue:@"application/x-www-form-urlencoded"forHTTPHeaderField:@"Content-Type"]; manager.responseSerializer.acceptableContentTypes = [NSSetsetWithObjects:@"app

2016-06-23 19:20:17 1120

原创 解决iOS手势影响其他控件问题

2016-06-23 19:11:47 521

原创 解决解析数据网页上只有一个数字,(文本类型)

问题:解决[[NSStringalloc]initWithData:dataencoding:NSUTF8StringEncoding];

2016-06-23 19:09:43 420

原创 UITableViewCell的操作(增加cell,删除cell,插入cell)

插入一个cell。也可插入多个*** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.60.7/UITableView.m:1716reason: 'Invalid update: invalid number of rows in section 0. The number o

2016-06-23 19:00:49 3239

原创 Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: internal server

解决方法:(我是用的AFNetworking请求的数据)解析数据的时候,不要使用responseObject,  NSString * jsonStr = [[NSStringalloc]initWithData:responseObjectencoding:NSUTF8StringEncoding];                NSData

2016-06-17 16:02:47 13689

原创 刷新/插入UITableView一个cell

NSIndexPath *indexPath = [NSIndexPath indexPathForRow:self.indexP inSection:0];       [self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnim

2016-06-16 17:42:31 273

原创 iOS 布尔值转换中文 以及布尔值的打印

打印布尔值  BOOL    NSLog(@"%@",_adModel.isTravel?@"YES":@"NO");打印布尔值  bool    NSLog(@"%@",_adModel.isTravel?@"true":@"false");打印布尔值  (中文)    NSLog(@"%@",_adModel.isTravel?@"是":@"否");

2016-06-16 17:35:00 924

原创 The file “XXX” couldn’t be opened because you don’t have permission to view it.解决方法

清理缓存即可,快捷键(command+shift+K)或者product-->clean

2016-06-16 10:15:34 2062

原创 DB Error: 1 "duplicate column name:

FMDB里面模型问题

2016-06-14 14:26:54 1702

原创 linker command failed with exit code 1 (use -v to see invocation)

报错linker command failed with exit code 1 (use -v to see invocation)解决方法:使用http://blog.csdn.net/hengshujiyi/article/details/21182813/

2016-06-14 14:25:33 254

原创 Presenting view controllers on detached view controllers is discouraged

解决方法- (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; [self presentViewController:[[YourViewController alloc] init] animated:YES completion:NULL]; }或者:- (void)view

2016-06-14 14:24:25 378

原创 解决使用SDWebImage加载图片,图片为空的问题

: CGContextDrawImage: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.Jun  4 11:37:12  aiJiaApp[2059] : CGBitmapContextCreateImage:

2016-06-14 14:22:39 2743

原创 设置返回按钮的颜色,中文字体

UIBarButtonItem * backItem =[[UIBarButtonItem alloc]initWithTitle:@"返回" style:0 target:nil action:nil];        self.navigationItem.backBarButtonItem = backItem;//要在上个界面设置 self.navigationControll

2016-06-14 14:16:43 618

原创 UILabel的自适应高度

UILabel * contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 10, KMainScreenWidth-20, 0)];        contentLabel.text = self.content;        contentLabel.numberOfLines = 0;        c

2016-06-14 14:10:50 362

原创 UIWebView的文本读取

[webView loadHTMLString:self.content baseURL:nil];//self.content 是字符串格式的文本

2016-06-14 14:00:20 291

原创 设置button的边框和颜色

留着以后忘记了查看一下,顺便给初学者学习 button.layer.borderWidth = 1.0;     button.layer.borderColor = [UIColor blackColor].CGColor;设置圆角 button.layer.masksToBounds =YES;                       

2016-06-14 13:53:23 3299

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除