我怎么能中风和填充NSAttributedString W / UILabel

是否有可能应用中风和填充 NSAttributedString和UILabel ?

xcode正在创build通用的xcode存档,而不是iOS应用程序存档

我是iPhone开发的初学者,我尝试使用我的个人资料和有效的证书创build一个ipa ,但是xcode创build了一个通用的xcode存档文件,而不是iOS应用程序存档,因为在我的代码中有两个.xcodeproj 。 并从stack overflow answer之一,我遵循以下步骤: 对于主项目目标,跳过安装是NO 对于框架(子项目)目标,跳过安装为YES 子项目需要在Project not Public中有Copy Headers 部署下的安装目录是有效的(例如,/应用程序) 但我仍然没有得到解决scheme。

如何使用AVMutableCompositionTrack合并audio和video

在我的应用程序中,我需要合并audio和video,然后我需要在Mediaplayer中播放audio文件。 我如何合并IOS中的audio和video。 有没有任何源代码。 请给我一些build议 提前致谢

需要一个检测iPhone何时插入的API

我为Mac制作了一个应用程序,而且我需要一个检测iPhone何时插入的API。谢谢。 编辑:为了澄清,具体来说,我需要一个API,检测到一个iPhone插入到Mac上的USB端口。

如何使用UINavigationController使用UIViewControllerAnimatedTransitioning?

将视图控制器推入UINavigationController时,如何获得自定义转换(iOS7)? 我试着在UINavigationController设置TransitioningDelegate ,并且在我推送的控制器上设置方法永远不会被调用。 我发现所有示例使用自定义转换时模态呈现。

iOS – 通知何时发生?

在iOS手机上进行GSM / CDMA通话时是否可以通知或检测? 我有一个应用程序,在后台使用audio,我希望能够检测到一个电话正在发生,以便我的应用程序可以作出相应的反应,以便不打扰蜂窝电话。 基本上,我希望能够检测何时发生呼叫,以便如果用户在通话中input我的应用程序,我可以禁用某些function。 所以我想知道如何检测到设备上正在发生蜂窝通话?

使用证书创buildSSL连接

我有作为文件提供给我的ssl证书(.cer)。 我添加它捆绑,并希望使用它与服务器通信。 我用苹果提供的代码: – (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge{ DLog(@"didReceiveAuthenticationChallenge : %@",challenge); if ([challenge.protectionSpace.authenticationMethod isEqualToString:NSURLAuthenticationMethodServerTrust]) { NSString *filePath = [[NSBundle mainBundle] pathForResource:@"certificate" ofType:@"cer"]; NSData *certData = [NSData dataWithContentsOfFile:filePath]; CFDataRef myCertData = (__bridge CFDataRef)certData; SecCertificateRef myCert = SecCertificateCreateWithData(NULL, myCertData); SecPolicyRef myPolicy = SecPolicyCreateBasicX509(); // 3 SecCertificateRef certArray[1] = { myCert }; CFArrayRef myCerts = CFArrayCreate(NULL, (void *)certArray, […]

多个video,同一屏幕

是否可以在同一屏幕上同时/在iOS上播放多个video? (例如,画中画模式或分屏。)

如何从iPhone上传video到服务器?

-(IBAction)uploadToServer :(id)sender { NSString *str1=[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"intro.mp4"]; NSLog(@"str1=%@",str1); NSString *escapedUrlString = [str1 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSLog(@"escapedUrlString=%@",escapedUrlString); NSURL *videoURL = [NSURL URLWithString:escapedUrlString]; NSLog(@"videoURL=%@",videoURL); NSData *newdata = [NSData dataWithContentsOfFile:escapedUrlString]; webdata=[NSData dataWithData:newdata]; NSLog(@"webData = %@",webdata); [self post:webdata]; } – (void)post:(NSData *)fileData { NSData *videoData = fileData; NSString *urlString = @"http://rompio.com/web_service/web.php?method=upload_video&user_id=4"; NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init]; [request setURL:[NSURL URLWithString:urlString]]; […]

自定义Cordova插件:将框架添加到“embedded式二进制文件”

在一个自定义的Cordova插件中,如何在plugin.xml中configuration特定的.framework文件,以便将其添加到Xcode中的“embedded式二进制文件”部分? 如果目前不能直接在plugin.xml中,我打开替代的build议。