上传到iTunes商店时发生错误

使用Xcode 4.3.2。 从昨天开始,我无法上传到iTunes Store。 我找不到任何理由。 存档 – >validation…没问题。 但是,分发时发生错误。 我的应用程序正在使用推。 我的Xcode版本是4.3.2。 我怎样才能摆脱这个状态呢? 请帮助我…并且谢谢。

处理iOS Framework项目的依赖关系

我已经使用这个方法创build了iOS Framework项目: https : //github.com/jverkoey/iOS-Framework 工作很整洁,但我有点困惑,如何包括我的框架工作所需的库/框架,特别是如何做到这一点,以防万一使用我的框架的第三方客户端应用程序可以包括这些库也没有冲突。 假设我的框架代码需要这两件事情: FacebookSDK.framework libFlurry.a 第一个是iOS框架。 当我把它添加到我的框架中的“链接二进制库”阶段,并尝试编译使用我的框架的客户端项目链接器抱怨丢失的符号 – 我需要添加FacebookSDK到客户端项目这是伟大的:如果客户端应用程序想使用Facebook冲突。 但是,当我做同样的Flurry静态库时,编译客户端项目时,我得到重复的符号错误。 这让我困惑了一下,因为不是FacebookSDK.framework只是一个打包的静态库? ukaszs-iMac:FacebookSDK.framework lukasz$ file Versions/A/FacebookSDK Versions/A/FacebookSDK: Mach-O universal binary with 3 architectures Versions/A/FacebookSDK (for architecture i386): current ar archive random library Versions/A/FacebookSDK (for architecture armv7): current ar archive random library Versions/A/FacebookSDK (for architecture cputype (12) cpusubtype (11)): current ar archive random […]

iCloud文档不可见

我正在尝试使用iCloud Documents来存储iOS应用程序中的XML文件。 一切似乎工作正常(我可以写入和阅读文件没有错误),除了我的应用程序的文件不会显示在icloud.com icloud文件,也不在我的developer.icloud.com,也不在我的Windows PC在iCloud Drive文件夹。 我正在模拟器中运行应用程序,并使用TestFlight在真实设备上进行testing。 我已经安装了Windows 4.0的最新版本的iCloud。 该应用程序是在Xcode 6中创build的。 有谁知道如何使文件出现在iCloud文件? 我用来保存文件的代码: NSLog(@"Syncing with iCloud"); NSURL *ubiq = [filemgr URLForUbiquityContainerIdentifier:nil]; if (ubiq) { NSURL *ubiquitousPackage = [ubiq URLByAppendingPathComponent:@"Documents" isDirectory:YES]; if ([filemgr fileExistsAtPath:[ubiquitousPackage path]] == NO) [filemgr createDirectoryAtURL:ubiquitousPackage withIntermediateDirectories:YES attributes:nil error:nil]; ubiquitousPackage = [ubiquitousPackage URLByAppendingPathComponent:@"data.pxa"]; DataFile *file = [[DataFile alloc] initWithFileURL:ubiquitousPackage]; file.xmlContent = doc.XMLString; [file […]

用NSURLSessionreplaceNSURLConnection

我一直在为NetworkCommunication开始一个devise。 我有一个devise在NSOperation子类创build和pipe理自己的NSURLConnection 。 NSOperation子类由NetworkManger类实例化,该类将其添加到NSOperationQueue 。 一旦请求完成,委托(例如: ViewController将被调用)。 这是stream量: networkingpipe理器实例化NSOperation子类(封装URL,参数等),并将其添加到它维护的NSOperationQueue 。 NSOperation子类实例化NSURLConnection (执行asynchronous请求并检索数据) NSURLConnection将数据转储到NSOperation-subclass NSOperation-subclass执行委托(视图控制器)提供的完成块。 我试图现在与NSURLSession实现相同的模式。 我希望能够封装在一个对象内进行networking请求所需的url和参数。 如果我使用相同的模式,如果我使用NSURLSession 。 我检查了AFNetworking类。 但是,他们没有为NSURLSession分类NSURLSession 。 而且,会话对象应该放在哪里。 它会成为NSOperationclass的一部分吗? 有人可以就此提供一些专家意见。 我应该可以取消请求,上传(POST / PUT),下载数据。 networkingpipe理员类将是任何networking请求的单一联系人。

button显示图像和文字

我正试图通过button显示一些文本和图像。 我正在使用这里的代码 let btnSort = UIButton.buttonWithType(UIButtonType.System) as! UIButton btnSort.frame = CGRectMake(2, 74, 140, 26) btnSort.tintColor = UIColor.whiteColor() btnSort.setImage(UIImage(named:"immgg"), forState: UIControlState.Normal) btnSort.imageEdgeInsets = UIEdgeInsets(top: 6,left: 100,bottom: 6,right: 14) btnSort.titleEdgeInsets = UIEdgeInsets(top: 0,left: -30,bottom: 0,right: 34) btnSort.setTitle("SORT", forState: UIControlState.Normal) btnSort.layer.borderWidth = 1.0 btnSort.layer.borderColor = UIColor.whiteColor().CGColor btnSort.addTarget(self, action: Selector("showSortTbl"), forControlEvents: UIControlEvents.TouchUpInside) self.view.addSubview(btnSort) 我可以在正确的地方看到图像,但是文字没有出现。 我认为titleEdgeInsets不工作。

如何为iPhone创build一个黑色渐变的UIButton?

我想在iOS中创build一个具有普通黑色渐变主题的UIButton。 我已经看了文档,似乎无法弄清楚如何做到这一点。 当我创buildbutton,我得到一个没有颜色的圆形矩形button。 这是我的代码: UIButton* leagueTeamButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; 关于如何将标准主题黑色渐变添加到button的任何build议?

如何在没有Storyboard的情况下在UITableViewRowAction中自定义字体和颜色

我有经典的TableView,你可以删除项目,如果你滑动,而不是点击button。 我知道如何在单元格上设置自定义背景,但我无法find如何设置自定义字体和颜色。 谢谢你的帮助! func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [AnyObject]? { var deleteAction = UITableViewRowAction(style: UITableViewRowActionStyle.Default, title: "Delete", handler: { (action:UITableViewRowAction!, indexPath:NSIndexPath!) -> Void in println("Delete button clicked!") }) deleteAction.backgroundColor = UIColor.redColor() return [deleteAction] }

iOS CoreLocation海拔高度

在iOS 4.0之前, CoreLocation正确报告高度,现在总是报告为0英尺。 -(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation*)newLocation fromLocation:(CLLocation *)oldLocation { NSString *tLatitude = [NSString stringWithFormat:@"%3.5f", newLocation.coordinate.latitude]; NSString *tLongitude = [NSString stringWithFormat:@"%3.5f", newLocation.coordinate.longitude]; /* the following returns 0 */ NSString *tAltitude = [NSString stringWithFormat:@"%i", newLocation.altitude]; /* theres more code, but it's not relevant, and this worked prior to iOS 4.0*/ [manager stopUpdatingLocation]; } 不在设备和模拟器上工作,是否有其他人遇到这个问题?

我可以在移动平台上运行HTTP服务器吗?

我正在构build一个无法放入app store的webapp(安全原因)。 Web应用程序需要访问比localStorage或其他离线存储方式(比方说高达1GB的数据)更多的数据。 我对解决scheme的想法是为Android和iOS编码一个HTTP服务器,然后通过AJAX获取/发布数据,这样我就可以访问设备的内部存储。 我的问题是, 这可以在iOS和Android上完成吗? “可以”,我的意思是在技术上(是否有API访问所需的组件,并可以始终在后台运行),并在法律上(是否符合App Store和Android Marketplace的服务条款)。 我对平台和function都不太了解,但是如果我确信这是可能的,我可以搞清楚。 这样做的原因是,无论是否存在无线networking或手机信号塔,都可以将大量的数据始终提供给networking应用程序。

onaudioprocess没有呼吁ios11

我试图从iOS11上的Safari上的麦克风获取audio捕获后,最近添加的支持 然而, onaudioprocesscallback从来没有被调用。 这是一个示例页面: <html> <body> <button onclick="doIt()">DoIt</button> <ul id="logMessages"> </ul> <script> function debug(msg) { if (typeof msg !== 'undefined') { var logList = document.getElementById('logMessages'); var newLogItem = document.createElement('li'); if (typeof msg === 'function') { msg = Function.prototype.toString(msg); } else if (typeof msg !== 'string') { msg = JSON.stringify(msg); } var newLogText = document.createTextNode(msg); newLogItem.appendChild(newLogText); […]