- 博客(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
4911
原创 pch文件里含有的某些头文件未包含
由于我仅仅只是在target里添加了pch 而未在 project里添加,总是会在某些时候提示某些pch里的头文件未包含,多数情况下会正常,目前在两个地方同时添加,还未出现类似错误
2016-07-13 15:13:59
455
原创 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
686
转载 在 Xcode 7 中安装 Alcatraz,再次安装vvdocumenter
http://www.jianshu.com/p/0e7a36d2af4b
2016-05-15 19:00:28
900
原创 textfield的leftview不能重复
两个个textfiled的对象不能复值同一个leftview或者rightview,否则cpu立涨100
2015-10-15 16:26:13
792
原创 xib autolayout 左到右依次按内容长度排列
如图中 三个label,依次按所需内容从左到右等间隔排列,设置号约束后,左后一个label总是优先靠右,当我设置距右边边距的约束的priority为low250时,才满足需求,如此看来,距边界的边距约束优先级高于内部view之间的约束
2015-07-02 21:02:24
867
原创 某个地方 category 的方法不想用的解决方案
给cell添加了分割线的category,重写了drawRect 增加分割线,但在某个地方的table不想要分割线,即使设置了 self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;在ios6下,只要不包含category的头文件header就不会调用category中的方法,会满足无分割线的需求,
2015-06-18 16:13:06
789
原创 uiscrollview uicollectionview touch事件传递问题
uiscrollview uicollectionview 无法响应touch事件,解决方案,新建一个uiscrollview 的category@implementation UIScrollView (UITouch) - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
2015-06-16 12:06:31
5742
原创 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
1137
转载 CLPlacemark 英文环境下获取中文信息
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations{ CLLocation *location = locations[0]; CLGeocoder *geocoder = [[CLGeocoder alloc]init];
2015-03-18 11:02:31
3740
原创 UINavigationController的title不显示
UINavigationController + UITabBarController 这两者一起用的情况下,UINavigationController的title不显示,我的问题在于把UITabBarController包在UINavigationController中了
2015-03-11 16:47:56
1885
原创 UICollectionViewCell 布局
//定义每个Item 的大小- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath{ return CGSizeMake(
2015-01-31 10:51:17
7603
原创 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
2305
原创 fmdb 数据库升级1-----增加表字段
NSString *sql = [NSString stringWithFormat:@"ALTER TABLE %@ ADD %@ text",TABLE_CARD,kScanCardPath]; [self.db executeUpdate:sql];
2014-11-19 15:11:54
11055
原创 页面间的数组传递注意问题
LDProductListViewController *productList = [[LDProductListViewControlleralloc]init]; productList.title =@"会员企业"; productList.product_companyType =LDIndustryMembersType; productL
2014-10-30 11:25:23
950
原创 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
32270
原创 *** 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
9817
原创 删除cell 报错*** Assertion failure in -[UITableView _endCellAnimationsWithContext:]
先remove数据,再执行 [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade]; 就对了。
2014-09-28 14:40:24
15317
原创 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
1314
原创 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
5025
原创 iOS 图片base64编码 上传
一直上传不成功,搜了N遍,尝试了N遍,终于找到了一个相关的:你可以看一下你传到后台后的数据,看看是不是收到的数据跟你上传的数据不一样。base64编码之后,data里面会含有一些“+”,而“+”通过post传到后台后,会被转换成空格。这样后台就接收不到图片了。你可以让后台将收到数据的空格替换成“+”,或者你看看我写的一个解决方法的bloghttp://blog.youkuaiyun.com/wang790
2014-09-10 23:32:30
16945
原创 hidesBottomBarWhenPushed 使用
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ [tableView deselectRowAtIndexPath:indexPath animated:NO]; if (indexPath.row == 0) { LDMyHome
2014-09-05 17:00:40
3302
原创 _locService = [[BMKLocationService alloc]init]; 我把这句话放在viewdidload 里,整个app不启动了,一直停留在启动页面
_locService = [[BMKLocationService alloc]init]; 我把这句话放在viewdidload 里,整个app不启动了,一直停留在启动页面,想想不应该出现这种问题,突然间
2014-08-18 17:41:02
4789
原创 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
5675
原创 ld: 16 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1
意为疏忽导致的,我就上图说说我的yuan yin
2014-06-21 21:56:17
3410
转载 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
1468
转载 UIActionSheet在有Tabbar的情况下取消按钮触摸被遮
UIActionSheet最后一个按钮没响应,一般是cancelButton,要稍微向上偏移一点才可以。不过这不是常态,几乎没多少人碰到这个问题,这是在特定情况下才会发生,这个场景就是试用了UITabBar的时候才有。参考:http://stackoverflow.com/questions/2096852/iphone-weird-bug-between-uiactionshee
2014-05-02 12:18:25
1945
原创 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
1869
原创 _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
4268
2
原创 searchDisplayController.searchBar点击后式样变了,变窄了
这是首次显示,当点击searchBar时,情况为:searchBar上下变窄了,原因为searchBar的frame高必须满足44.
2014-03-28 16:35:49
954
原创 button 上的标题竖着排放
联想label换行,想到了,button的高设置大点,接着[TVBtn setTitle:@"直 播" forState:UIControlStateNormal];[TVBtn.titleLabel setTextAlignment:NSTextAlignmentCenter];[TVBtn.titleLabel setLineBreakMode:NSLineBreakByWordWrap
2014-03-20 10:31:59
3637
原创 ios 百度地图开发 奔溃原因可能之一
在做公交搜索时,共两页,前一页是选择地点的,其中我想默认定位点为起点,所以在此页面开启了mapview的定位,跳转到下一页面(此页面也开启了定位)时,当执行完viewdidLoad方法后奔溃,苦思又想终究没想出原因,故此换了思路,默认起点在下一页面定位确定,试了试,成功。至此,可以锁定奔溃的原因了——开启了定位,至于为什么等项目结束再研究研究。
2014-01-20 11:14:13
1406
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人