IOS开发问题汇总
2011-11-04 16:28
393 查看
1.运行即崩溃,log下面提示:
Couldn't register com.myApp.debug with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.Program received signal: “SIGABRT”.
解决办法:重启iphone/ipad系统
2.使用Three20框架,加载图片失败,log以下提示:
TTDASSERT failed: 0 == _queue.maxContentLength contentLength <=_queue.maxContentLength
解决办法:在appDelegate中加入
[[TTURLRequestQueue mainQueue] setMaxContentLength:0];
3.一个object被dealloc之后,其指针还存在,但指向的内存伟空,为了防止其他地方判断该object是否为nil的时候出现bad
access问题,就应该立即写一句object = nil;
4.UINavigationBar的tintColor变了,backItem的颜色不变
的问题解决方案:
@interface UINavigationController (RefreshBackItem)
- (void)refreshBackItem;
@end
@implementation UINavigationController (RefreshBackItem)
- (void)refreshBackItem
{
UINavigationBar *bar = self.navigationBar;
UINavigationItem *backItem = bar.backItem;
NSString *title = [backItem title];
backItem.title = @"";
backItem.title = title;
}
@end
分享到:
Couldn't register com.myApp.debug with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.Program received signal: “SIGABRT”.
解决办法:重启iphone/ipad系统
2.使用Three20框架,加载图片失败,log以下提示:
TTDASSERT failed: 0 == _queue.maxContentLength contentLength <=_queue.maxContentLength
解决办法:在appDelegate中加入
[[TTURLRequestQueue mainQueue] setMaxContentLength:0];
3.一个object被dealloc之后,其指针还存在,但指向的内存伟空,为了防止其他地方判断该object是否为nil的时候出现bad
access问题,就应该立即写一句object = nil;
4.UINavigationBar的tintColor变了,backItem的颜色不变
的问题解决方案:
@interface UINavigationController (RefreshBackItem)
- (void)refreshBackItem;
@end
@implementation UINavigationController (RefreshBackItem)
- (void)refreshBackItem
{
UINavigationBar *bar = self.navigationBar;
UINavigationItem *backItem = bar.backItem;
NSString *title = [backItem title];
backItem.title = @"";
backItem.title = title;
}
@end
分享到:
相关文章推荐
- 【汇总】iOS开发及Xcode使用中遇到的一些报错问题汇总
- ios,android使用HTML5开发问题汇总
- 芒果iOS开发人事面试问题及答案汇总一
- iOS 10 开发适配问题汇总详解
- iOS开发遇到问题汇总(一)
- IOS 开发过程中问题汇总
- 芒果iOS开发人事面试问题及答案汇总三
- 芒果iOS开发人事面试问题及答案汇总二
- 【汇总】iOS开发及Xcode使用中遇到的一些报错问题汇总
- ios开发经典问题汇总
- iOS弹幕开发中遇到的问题汇总
- 【iOS开发】iOS 10 添加推送功能注意点及问题汇总
- iOS开发-- 开发中遇到的问题汇总
- IOS 开发过程中问题汇总
- 【ios开发技术研究】Xcode8 及iOS10适配问题整理汇总
- IOS问题汇总:2015-1-9 【iOS开发】.h,.m,.mm,.cpp等区别
- iOS基于百度地图的开发(5)——核心问题汇总
- IOS开发错误问题汇总(更新中)
- iOS开发小记:初次接入环信SDK3.0时遇到的问题及解决办法汇总
- ios开发(三方集成)--ShareSDK常见问题汇总