草庐IT

admin_no

全部标签

iphone - AVAudioRecorder Record 方法随机返回 NO

我目前正在开发一款支持应用内录音的应用。用户可以获得他/她已经通过应用程序录制的本地保存的音频文件的标准表格View,或者按下按钮转到新的录制View,从那里可以录制新的AudioSession,它将自动获取保存到应用程序沙箱。现在这个功能在大多数时候都运行良好。我可以录制新文件并从应用程序播放它们,但有时录音机无法通过这种方法开始录音:-(void)startRecording{if(!isRecording){isRecording=YES;BOOLrecordingSucess=[audioRecorderrecord];if(recordingSucess)NSLog(@"WE

iphone - AVAudioRecorder Record 方法随机返回 NO

我目前正在开发一款支持应用内录音的应用。用户可以获得他/她已经通过应用程序录制的本地保存的音频文件的标准表格View,或者按下按钮转到新的录制View,从那里可以录制新的AudioSession,它将自动获取保存到应用程序沙箱。现在这个功能在大多数时候都运行良好。我可以录制新文件并从应用程序播放它们,但有时录音机无法通过这种方法开始录音:-(void)startRecording{if(!isRecording){isRecording=YES;BOOLrecordingSucess=[audioRecorderrecord];if(recordingSucess)NSLog(@"WE

iphone - 导入错误 : No module named zope. 接口(interface)

我正在尝试使用http://www.raywenderlich.com/3932/how-to-create-a-socket-based-iphone-app-and-server为iphone运行服务器我的机器是mac10.6.8python版本:2.7.3我对python没有任何了解。我已经另外安装了Twisted-12.1.0,但我仍然收到此错误。追溯(最近的调用最后):文件“chatserver.py”,第1行,位于从twisted.internet.protocol导入协议(protocol),工厂文件“/Library/Frameworks/Python.framewor

iphone - 导入错误 : No module named zope. 接口(interface)

我正在尝试使用http://www.raywenderlich.com/3932/how-to-create-a-socket-based-iphone-app-and-server为iphone运行服务器我的机器是mac10.6.8python版本:2.7.3我对python没有任何了解。我已经另外安装了Twisted-12.1.0,但我仍然收到此错误。追溯(最近的调用最后):文件“chatserver.py”,第1行,位于从twisted.internet.protocol导入协议(protocol),工厂文件“/Library/Frameworks/Python.framewor

ios - NSURL isFileURL 总是返回 NO

谁能给我解释一下为什么会出现下面的代码:NSString*filePathString=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES)[0];NSLog(@"%i",[[NSURLURLWithString:filePathString]isFileURL]);NSLog(@"%@",filePathString);输出:0“/var/mobile/Applications/28ADFC19-874C-4304-94B5-F6441CAE9FAD/Documents”这意味着此u

ios - NSURL isFileURL 总是返回 NO

谁能给我解释一下为什么会出现下面的代码:NSString*filePathString=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES)[0];NSLog(@"%i",[[NSURLURLWithString:filePathString]isFileURL]);NSLog(@"%@",filePathString);输出:0“/var/mobile/Applications/28ADFC19-874C-4304-94B5-F6441CAE9FAD/Documents”这意味着此u

iphone - iOS 错误 : No visible @interface for 'Project' declares the selector 'alloc'

我正在像这样初始化一个对象:Project*Project=[[Projectalloc]init];这是项目类的代码:Project.h#import@interfaceProject:NSObject{}@property(nonatomic,assign)intprojectID;@property(nonatomic,strong)NSString*name;@endProject.m#import"Project.h"@implementationProject@synthesizeprojectID,name;@end我遇到错误Novisible@interfacefor'

iphone - iOS 错误 : No visible @interface for 'Project' declares the selector 'alloc'

我正在像这样初始化一个对象:Project*Project=[[Projectalloc]init];这是项目类的代码:Project.h#import@interfaceProject:NSObject{}@property(nonatomic,assign)intprojectID;@property(nonatomic,strong)NSString*name;@endProject.m#import"Project.h"@implementationProject@synthesizeprojectID,name;@end我遇到错误Novisible@interfacefor'

ios - Jenkins - 失败 : No test report files were found. 配置错误?

我是“Jenkins”的初学者,正在关注thistutorial.在Sixthstep我遇到了以下错误。xcodebuild:error:SchemeJenkinsTestisnotcurrentlyconfiguredforthetestaction.Buildstep'Xcode'markedbuildasfailureRecordingtestresultsERROR:Step‘PublishJUnittestresultreport’failed:Notestreportfileswerefound.Configurationerror?Finished:FAILURE在测试报

ios - Jenkins - 失败 : No test report files were found. 配置错误?

我是“Jenkins”的初学者,正在关注thistutorial.在Sixthstep我遇到了以下错误。xcodebuild:error:SchemeJenkinsTestisnotcurrentlyconfiguredforthetestaction.Buildstep'Xcode'markedbuildasfailureRecordingtestresultsERROR:Step‘PublishJUnittestresultreport’failed:Notestreportfileswerefound.Configurationerror?Finished:FAILURE在测试报