uitableview 滑动时 报错-[__NSCFString objectAtIndex:]: unrecognized selector sent to instance
摘要:出现此问题的解决办法是:问题:新建一个tableview,在设置数据源时,如果不retain一下数组的话,就会崩溃:array=[NSArrayarrayWithObjects:@"1",@"2",@"3",@"4",@"5",nil];[arrayretain];报错信息:-[NSCFStringobjectAtIndex:]:unrecognizedselectorsenttoinstance0x4b436d0新建tableview最精简的代码:-(void)viewDidLoad{[sup
阅读全文
posted @
2013-02-20 16:36
wtq
阅读(9901)
推荐(0) 编辑
uiscrollview 删除子view时,继续滚动到被删除的索引。
摘要:问题:我在做一个相册的时候,如果删除uiscrollerview的元素,假如原本scroll的元素为9,然后我 删除1个,元素,接着把9个元素都删除掉,再重新添加8个元素,结果scroller在滚动时也可以滚动到第9个位置上。这是如果删除第9个元素,会报错,解决办法是动态的设置uisrollerview的contentSize。这样就可以了。例子代码如下 1 //更新相片 2 -(void)UpdatePhoto 3 { 4 NSLog(@"imageNameCount:%d---scrollIndex:%d",self.imageNameArray.count,scrol
阅读全文
posted @
2013-02-18 10:22
wtq
阅读(1482)
推荐(0) 编辑
ios 6.0 发布应用程序出现缺少armv6的情况。
摘要:问题:今天发布一个应用程序到苹果商店时,老是提示如下错误:原因是:xcode4.5不再支持armv6即:iOS4.3.3以下的系统.不被支持的硬件设备包括:iPod 2nd gen, iPhone 3G 或更老的iPhone例如我打包时的错误提示就是:warning: iOS deployment targets lower than 4.3 are not supported (current IPHONEOS_DEPLOYMENT_TARGET = "4.0", ARCHS = "armv7").(null): iPhone/iPod Touch:
阅读全文
posted @
2012-10-24 13:52
wtq
阅读(329)
推荐(0) 编辑
This generally means that another instance of this process was already runni
摘要:This generally means that another instance of this process was already runni 今天开发demo的时候遇到过好几次这样的问题。重启Xcode, 重启iphone模拟器,都不行。最后重启mac系统搞定,问题很诡异。 看网络上很多人实机测试遇到这样的问题。也基本无解,只能通过重启设备(iphone)解决。
阅读全文
posted @
2012-09-09 19:24
wtq
阅读(1099)
推荐(0) 编辑
iphone 添加CFNetwork.framework时,报错 socket
摘要:在编译AsyncSocket.m时,出现如下图的报错信息,请问如何解决?感激不尽原因是:没有正确地导入CFNetwork.framework。这个类库。正确地导入方式是:Targets-》”选择项目“--》”单击Summary 标签“--》”单击'Linked Frameworks and Libraries'“--》"单击+号,添加CFNetwork.framework" .
阅读全文
posted @
2012-07-02 16:41
wtq
阅读(1432)
推荐(0) 编辑
ASIHTTPRequest迟到的结果
摘要:1:原文摘自:http://seanwong.lofter.com/post/3ecae_df678/ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];[request setDelegate:self];[request startAsynchronous];这段本身没什么问题,在Navigation Controller驱动下,用户点快了之后,异步请求返回慢了,会出respondsToSelector:]: message sent to deallocated instance这种错误。也就是说delegate一般
阅读全文
posted @
2012-06-05 15:28
wtq
阅读(474)
推荐(0) 编辑
关于IOS的视频录制
摘要:原文摘自:http://blog.csdn.net/zoutian007/article/details/7472098关于IOS的视频录制昨天写了一段程序关于视频录制的,老是库找不到,提示错误。 首先要加的是AVFoundtion.framework. 接着提示"_CVPixelBufferGetPixelFormatType", referenced from: -[AVCallController captureOutput:didOutputSampleBuffer:fromConnection:] in AVCallController.o "_CVPi
阅读全文
posted @
2012-06-04 14:24
wtq
阅读(733)
推荐(0) 编辑
iphone NSArray 数组越界
摘要:问题:在将数据添加到数组中去的时候,出现如下错误 疑问为:使用[NSArray addObject:anObject] 竟然报出数组越界。-[__NSArrayM insertObject:atIndex:]: index 18 beyond bounds [0 .. 16]'
阅读全文
posted @
2012-05-26 11:23
wtq
阅读(418)
推荐(0) 编辑
iphone 委托导致内存泄露
摘要:A: 9:48:15程序在运行中,突然报这个错误。-[IPhoneConnectTestViewControllerservice:didFailWithError:]:messagesenttodeallocatedinstance0x10ffaf10类似着这种错误你有碰过吗?B9:49:37内存泄漏0x10ffaf10这个内存块泄漏了B: 9:50:40已经释放了你把消息发送到已经释放的内存块估计是啥变量被你提前释放了A: 9:54:20恩,灰常有可能。这是我使用委托的时候,发生的,而且是随机的。无法确定的错误。B: 9:55:38哈哈,我知道了B: 9:57:06你在哪个界面使用委托,出
阅读全文
posted @
2012-05-25 10:31
wtq
阅读(268)
推荐(0) 编辑
iphone ipad 无法进行真机调试
摘要:问题:在做真机调试时,证书安装正常,但是无法将程序运行到ipad上。 在选择模拟器时,显示如下图所示。 下载附件(12.8 KB)4小时前上传 此图的iOS Device并没有消失。此时无法将程序运行到ipad上进行调试。 当我把另外一台ipad连接到电脑上,结果iOS Device消失了。此时,可以将程序运行到ipad上。请问这是为什么?解决方法:原因是设备的版本与xcode的版本不一致,比如iphone3GS需要设置Deployment Target的值为4.0 ~4.3.而不是设置5.1
阅读全文
posted @
2012-05-21 19:18
wtq
阅读(668)
推荐(0) 编辑
iphone _ ipad 应用程序发布问题
摘要:问题描述: 先将一个iphone应用程序发布到appStore,然后下载到ipad上进行安装,安装一切正常,登录也正常,但是当点击摄像头节点时,却报错。 应用程序自动关闭。
阅读全文
posted @
2012-05-19 10:24
wtq
阅读(307)
推荐(0) 编辑
iphone 账号问题
摘要:1:99刀的为公司使用,可以自己定义一定数量的开发者子账号,不过只能有主账号来提交,发布等操作。 问题:如何利用多个开发子账号来进行测试2:如果发布一个应用程序到苹果商店,用户购买并且下载,苹果那边的分成是多少呢?3: 账号续费问题:帐号一般都是一年续费一次。续费一次大约需要个3到5天。所以在帐号失效前十天就要做准备。
阅读全文
posted @
2012-05-14 21:31
wtq
阅读(584)
推荐(0) 编辑
iphone ipad viewController不响应横竖屏转换相关消息的问题
摘要:原文链接地址:屏幕无法旋转有同学在 CocoaChina 上提出这样一个问题:A viewController 中包含一个 B viewController(B 的 view 作为 A 的 view 的 subView),在横竖屏转换时,A 可以得到屏幕旋转相关的消息(如:shouldAutorotateToInterfaceOrientation),而 B 却得不到,即使 A,B 都实现了这些函数。原贴见这里:http://www.cocoachina.com/bbs/read.php?tid=40973&page=1#393765这个问题我以前也碰到过,稍微研究了一下,其原因是 A
阅读全文
posted @
2012-05-10 10:49
wtq
阅读(430)
推荐(0) 编辑
ipad 判断设备的方向问题
摘要:问题描述:如果使用以下代码在iPad模拟器上进行判断横竖屏的话,运行正常,但是如果运行在真机上,结果一直运行else语句,也就是说判断无效。 if([[UIDevicecurrentDevice]orientation]==UIInterfaceOrientationLandscapeLeft||[[UIDevicecurrentDevice]orientation]==UIInterfaceOrientationLandscapeRight){[self.imageViewsetFrame:CGRectMake(0,0,704,768)];[self.cameraControllersetF
阅读全文
posted @
2012-05-08 10:11
wtq
阅读(493)
推荐(0) 编辑
iPad /iPhone Apple Mach-O Linker Error
摘要:问题:在转换解码器时,出现如下错误:Apple Mach-O Linker Error Linker command failed with exit code 1(use -v to see invocation) ld: duplicate symbol _fourxm_decoder in .../libH264Unit.a(4xm.o) and .../libavcodec.a(4xm.o) for architecture armv7clang: error: linker command failed with exit co...
阅读全文
posted @
2012-05-03 15:26
wtq
阅读(8988)
推荐(0) 编辑
iphone 如此设置全局变量,为何?
摘要:为什么要像下面那样设置全局变量,理由何在?#import"ServiceBase.h" NSString*ServerAddress=nil; NSString*UserName=nil; NSString*Password=nil; NSString*SessionID=nil; @implementationServiceBase @synthesizeconnection; @synthesizeresponceData; @synthesizedelegate;-(void)dealloc{ [responceDa...
阅读全文
posted @
2012-04-12 15:45
wtq
阅读(318)
推荐(0) 编辑
iphone 有关(maybe you meant: _kSecClass$non_lazy_ptr)
摘要:1:我写如下代码:NSArray *key = [[[NSArray alloc] initWithObjects:(NSString *) kSecClass,kSecAttrAccount,kSecAttrServer,nil] autorelease]; NSLog(@"key is %@",key);但是运行时,提示如下错误 "_kSecClass", referenced from: _kSecClass$non_lazy_ptr in grammarViewController.o (maybe you meant: _kSecClass$n
阅读全文
posted @
2012-04-12 10:51
wtq
阅读(460)
推荐(0) 编辑
iphone 代码在真机上可以运行但在模拟其上不可运行
摘要:问题描述:iphone代码在模拟器上不可以运行,但是在真机上可以运行,如果在模拟器上进行滑屏时,那么会报-[VideoServerInfoClientService release]: message sent to deallocated instance 0x1655bac0这个错误,但在真机上一切正常。解决办法:
阅读全文
posted @
2012-03-23 15:35
wtq
阅读(237)
推荐(1) 编辑
iphone viewdidLoad运行以及参数的传递。
摘要:问题:有三个view,他们之间传递一个NSArray *NodeArray IPadLoginViewController----》VedioContainerViewController-----》IpadTreeViewTestController 在VedioContainerViewController的ViewDidLoad 中,若写成如下代码 IpadTreeViewTestController *ipadTvtc = [[IpadTreeViewTestController alloc] init]; ipadTvtc.view.frame = CGRectMa...
阅读全文
posted @
2012-03-17 14:51
wtq
阅读(355)
推荐(0) 编辑
iphone @selector带参数问题
摘要:今天是3月15号国际消费者权益日,现在就记录下有关@selector的相关问题。1 增加手势:UITapGestureRecognizer *oneFingerTwoTaps = [[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(oneFingerTwoTaps:)] autorelease]; // Set required taps and number of touches [oneFingerTwoTaps setNumberOfTapsRequired:2]; [oneFingerTwoTaps
阅读全文
posted @
2012-03-15 21:29
wtq
阅读(5513)
推荐(0) 编辑