自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(66)
  • 资源 (7)
  • 收藏
  • 关注

原创 The entitlements specified in your application’s Code Signing Entitlements file do not match those s

真机调试报错:The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile. (0xE8008016).请在PROJECT与TARGETS里的build setting下的provi

2016-07-29 10:17:28 4886

原创 pch文件里含有的某些头文件未包含

由于我仅仅只是在target里添加了pch 而未在 project里添加,总是会在某些时候提示某些pch里的头文件未包含,多数情况下会正常,目前在两个地方同时添加,还未出现类似错误

2016-07-13 15:13:59 432

原创 application windows are expected to have a root view controller

application windows are expected to have a root view controller,奔溃,可能原因:1不能用setrootviewcontroller设置根目录,2在设置rootcontroller后,必须紧跟return yes,请注意,或许会有某些自动登录在didFinishLaunchingWithOptions里进行,根据请求成功与失败设置不同的

2016-06-14 17:01:29 654

转载 在 Xcode 7 中安装 Alcatraz,再次安装vvdocumenter

http://www.jianshu.com/p/0e7a36d2af4b

2016-05-15 19:00:28 882

原创 qq分享报 : EQQAPIAPPSHAREASYNC

preview image data is too big分享的图片太大,导致失败

2016-05-10 10:12:35 1420

原创 文章标题

UIImageView 设置图片不拉伸:1.aspectFill 与 clip subviews 同时勾选 2aspectFit

2016-05-09 14:09:43 352

原创 ios开发中,xib加载view,loadNibNamed方法奔溃原因之一

xib中某一属性在代码中已删除,但在xib中没有解除关联

2016-01-27 16:56:54 5473

原创 textfield的leftview不能重复

两个个textfiled的对象不能复值同一个leftview或者rightview,否则cpu立涨100

2015-10-15 16:26:13 775

原创 xib autolayout 左到右依次按内容长度排列

如图中 三个label,依次按所需内容从左到右等间隔排列,设置号约束后,左后一个label总是优先靠右,当我设置距右边边距的约束的priority为low250时,才满足需求,如此看来,距边界的边距约束优先级高于内部view之间的约束

2015-07-02 21:02:24 846

原创 某个地方 category 的方法不想用的解决方案

给cell添加了分割线的category,重写了drawRect 增加分割线,但在某个地方的table不想要分割线,即使设置了    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;在ios6下,只要不包含category的头文件header就不会调用category中的方法,会满足无分割线的需求,

2015-06-18 16:13:06 772

原创 uiscrollview uicollectionview touch事件传递问题

uiscrollview  uicollectionview 无法响应touch事件,解决方案,新建一个uiscrollview 的category@implementation UIScrollView (UITouch)  - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event  {  

2015-06-16 12:06:31 5701

原创 OC编译C++类库 出错

解决方法 网址:http://stackoverflow.com/questions/12968369/undefined-symbols-for-architecture-armv7-when-using-zxing-library-in-xcode-4-5问题描述:Undefined symbols for architecture armv7:   "std::string::r

2015-04-06 02:51:49 1122

原创 IOS 推送 通知栏消息模式 显示demo字段,如何让demo字段变为应用名

在 info 里设置 bundle name 为 应用名

2015-04-02 14:48:15 2866

转载 CLPlacemark 英文环境下获取中文信息

-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations{ CLLocation *location = locations[0]; CLGeocoder *geocoder = [[CLGeocoder alloc]init];

2015-03-18 11:02:31 3700

原创 UINavigationController的title不显示

UINavigationController + UITabBarController 这两者一起用的情况下,UINavigationController的title不显示,我的问题在于把UITabBarController包在UINavigationController中了

2015-03-11 16:47:56 1864

原创 UICollectionViewCell 布局

//定义每个Item 的大小- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath{ return CGSizeMake(

2015-01-31 10:51:17 7576

原创 iOS7 与 iOS8上 uisegementcontrol 设置image不显示问题

http://stackoverflow.com/questions/22407725/ios7-uisegmentcontrol-image-does-not-display图片初始化 [UIImage imageNamed:@"segment1.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]

2014-12-05 14:44:39 2279

原创 fmdb 数据库升级1-----增加表字段

NSString *sql = [NSString stringWithFormat:@"ALTER TABLE %@ ADD %@ text",TABLE_CARD,kScanCardPath]; [self.db executeUpdate:sql];

2014-11-19 15:11:54 11022 2

原创 页面间的数组传递注意问题

LDProductListViewController *productList = [[LDProductListViewControlleralloc]init];    productList.title =@"会员企业";    productList.product_companyType =LDIndustryMembersType;    productL

2014-10-30 11:25:23 934

原创 fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Dev

类似这样的错误:fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/U

2014-10-18 14:09:02 32213 6

原创 *** Assertion failure in -[UISectionRowData refreshWithSection:tableView:tableViewRowData:], /Source

*** Assertion failure in -[UISectionRowData refreshWithSection:tableView:tableViewRowData:], /SourceCache/UIKit_Sim/UIKit-3318.16.14/UITableViewRowData.m:619*** Terminating app due to unca

2014-10-09 19:05:21 9793

原创 删除cell 报错*** Assertion failure in -[UITableView _endCellAnimationsWithContext:]

先remove数据,再执行  [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];  就对了。

2014-09-28 14:40:24 15279

原创 nssting 编码问题

%3Cimg%20alt%3D%22%u5FAE%u7B11%22%20src%3D%22/anjiaoban/Themes/Scripts/xhEditor/xheditor_emot/default/smile.gif%22%20/%3E%3Cspan%20style%3D%22color%3A%23ff0000%3B%22%3E%u9648%u663E%u5B87%3C/span%3E%3C

2014-09-20 22:02:55 1303

原创 ld: 7 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (

找死了 找了半天,原来头文件包含了.m文件#import "LDCompanyHomeViewController.h"#import "LDProductAndCompanyCommonCell.m"#import "LDProductHomeCell.h"#import "LDRenMaiCell.h"#import "LDCompanyDynamicCell.h"

2014-09-11 11:52:40 5004

原创 iOS 图片base64编码 上传

一直上传不成功,搜了N遍,尝试了N遍,终于找到了一个相关的:你可以看一下你传到后台后的数据,看看是不是收到的数据跟你上传的数据不一样。base64编码之后,data里面会含有一些“+”,而“+”通过post传到后台后,会被转换成空格。这样后台就接收不到图片了。你可以让后台将收到数据的空格替换成“+”,或者你看看我写的一个解决方法的bloghttp://blog.csdn.net/wang790

2014-09-10 23:32:30 16895 2

原创 hidesBottomBarWhenPushed 使用

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ [tableView deselectRowAtIndexPath:indexPath animated:NO]; if (indexPath.row == 0) { LDMyHome

2014-09-05 17:00:40 3272

原创 _locService = [[BMKLocationService alloc]init]; 我把这句话放在viewdidload 里,整个app不启动了,一直停留在启动页面

_locService = [[BMKLocationService alloc]init]; 我把这句话放在viewdidload 里,整个app不启动了,一直停留在启动页面,想想不应该出现这种问题,突然间

2014-08-18 17:41:02 4765 6

原创 ios6上,tabbar不显示

继承系统UITabbarController,为根控制器,在ios7上tabbar

2014-08-18 10:57:58 2004

原创 Unbalanced calls to begin/end appearance transitions for <UINavigationController: 0xac500c0>.

- (void)replaceController:(UIViewController *)oldController newController:(UIViewController *)newController container:(UIView *)container{ if (newController) { [self addChildViewControlle

2014-08-15 16:12:27 5647 2

原创 uisearchbar 背景

想要searchbar的背景同table保持一致,又要取消按钮的字体ke t

2014-07-30 10:44:13 713

原创 ld: 16 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1

意为疏忽导致的,我就上图说说我的yuan yin

2014-06-21 21:56:17 3374

转载 url utf-8编码解码

1.url编码ios中http请求遇到汉字的时候,需要转化成UTF-8,用到的方法是:NSString * encodingString = [urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];2.url解码请求后,返回的数据,如何显示的是这样的格式:%3A%2F%2F

2014-06-17 15:22:23 1441

原创 uitextview 字数限制

在网上看了,用他们的方法总是在再次输入时报错,貌似时越界问题本人略作xi

2014-05-06 21:11:47 1033

转载 UIActionSheet在有Tabbar的情况下取消按钮触摸被遮

UIActionSheet最后一个按钮没响应,一般是cancelButton,要稍微向上偏移一点才可以。不过这不是常态,几乎没多少人碰到这个问题,这是在特定情况下才会发生,这个场景就是试用了UITabBar的时候才有。参考:http://stackoverflow.com/questions/2096852/iphone-weird-bug-between-uiactionshee

2014-05-02 12:18:25 1916 1

原创 uitableview中的cellforrow方法里 修改button title

//判断登陆退出按钮 self.loginBtn = [UIButton buttonWithType:UIButtonTypeCustom]; [self.loginBtn setFrame:cell.frame]; [self.loginBtn addTarget:self action:@selector(loginOrOut:) forCon

2014-04-20 23:16:48 1851

原创 _mapView=[[BMKMapView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)];报错

_mapView=[[BMKMapView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)];执行到这句报错,我的原因是没有添加bundle资源文件

2014-04-03 11:29:14 4229 3

原创 searchDisplayController.searchBar点击后式样变了,变窄了

这是首次显示,当点击searchBar时,情况为:searchBar上下变窄了,原因为searchBar的frame高必须满足44.

2014-03-28 16:35:49 933

原创 button 上的标题竖着排放

联想label换行,想到了,button的高设置大点,接着[TVBtn setTitle:@"直 播" forState:UIControlStateNormal];[TVBtn.titleLabel setTextAlignment:NSTextAlignmentCenter];[TVBtn.titleLabel setLineBreakMode:NSLineBreakByWordWrap

2014-03-20 10:31:59 3587

原创 uidatepicker显示中文

第一步,设置模拟器为语言设置为中文;第二步,区域格式设置为中国

2014-01-26 16:53:01 2279

原创 ios 百度地图开发 奔溃原因可能之一

在做公交搜索时,共两页,前一页是选择地点的,其中我想默认定位点为起点,所以在此页面开启了mapview的定位,跳转到下一页面(此页面也开启了定位)时,当执行完viewdidLoad方法后奔溃,苦思又想终究没想出原因,故此换了思路,默认起点在下一页面定位确定,试了试,成功。至此,可以锁定奔溃的原因了——开启了定位,至于为什么等项目结束再研究研究。

2014-01-20 11:14:13 1372

语音识别系统dtw

基于mfcc进行特征值提取,dtw建模,有界面

2014-08-31

非文本语音识别系统

完整的语音识别系统,能运行,基于mfcc参数提取,vq建模

2014-08-31

ios百度地图自定义大头针

仿安居客app客户端效果,自定义大头针,大头针带有请求数据的数据量,点击大头针,弹出一个列表,点击跳到详细页面

2013-10-07

ios开发 页面切换

简单的iphone页面切换程序,适合初学者

2013-03-09

链表操作(创建、排序、插入、逆序递归)

c语言单链表操作(创建、排序、插入、逆序递归)

2012-03-21

移动电子商务概况

随着电子商务的不断发展与完善,移动电子商务走上了舞台,该报告是对我国移动电子商务的概况及其发展研究。

2011-11-27

易学c++ 初学C++

初学习C++的一本不错的书,适合初学者的程序设计教程。

2011-10-31

空空如也

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

TA关注的人

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