试图弄清楚如何通过Crashlytics进行beta测试分发.他们的神秘指令说明你所要做的就是"为存档构建"但该命令不再存在.我已经创建了一个存档(Product => Archive)并导出了ad hoc版本,但Crashlytics没有提取它.
如何上传版本?
我正在尝试上传我的应用的新版本.当我上传apk然后点击Publish now to production,
它告诉我
"发生意外错误.请稍后再试.(668269003)"
我尝试在Google上搜索,但找不到任何有价值且有用的信息.有没有人得到同样的错误?
在ios8.3中运行,但在ios9或10中运行没有这个问题.
-[CIContext initWithOptions:]: unrecognized selector sent to instance 0x170400960
2016-09-19 18:08:21.025 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CIContext initWithOptions:]: unrecognized selector sent to instance 0x170400960'
*** First throw call stack:
(0x186d8c2d8 0x1985b00e4 0x186d933a4 0x186d90154 0x186c92ccc 0x1001c1e74 0x1001c1b7c 0x1001c143c 0x1001c1cfc 0x100311e0c 0x1003116d0 0x1001d7690 0x101f3025c 0x101f2fc08 0x101eee29c 0x103db8fd4 0x103db8f94 0x103dbdc28 0x186d437f8 0x186d418a0 0x186c6d2d4 0x1904836fc 0x18b832fac 0x100401fd8 0x198c2ea08)
libc++abi.dylib: terminating with uncaught exception of type NSException
Run Code Online (Sandbox Code Playgroud) 我想知道Android应用程序签名.
IFAIK,blackberry和iphone应用程序必须签名才能在真实设备上运行.对于Android,应用程序是否需要签名?
如果是这样,如何签署申请?
请指教.家伙.
提前致谢.
我有一个应用程序,我有一个UINavigationController
子类作为我的rootViewController
.我有一个UITableViewController
允许用户编辑一些设置,它应该始终处于纵向模式.将MoviePlayer组件推送到导航控制器后,我的应用程序还需要支持所有其他方向.
该UITableViewController
子类有此实现supportedInterfaceOrientations的:
- (NSUInteger)supportedInterfaceOrientations {
LLog();
return UIInterfaceOrientationMaskPortrait;
}
Run Code Online (Sandbox Code Playgroud)
logging命令告诉我实际调用它.
问题是没有遵守返回值,即当我转动设备时屏幕转向横向.
如何使设置视图始终以纵向显示,但允许更改视频查看器的方向?
更多信息:我的UINavigationController
子类不会覆盖shouldAutorotate或supportedInterfaceOrientations.我没有实施
- (NSUInteger)application:(UIApplication *)application
supportedInterfaceOrientationsForWindow:(UIWindow *)window
Run Code Online (Sandbox Code Playgroud)
我的AppDelegate中的方法,我已启用目标摘要中的所有方向.
我想使用swift来实现应用内电子邮件.单击该按钮时,会弹出电子邮件窗口.但是,我无法发送电子邮件.此外,点击取消删除草稿后,我无法返回到原始屏幕.
import UIkit
import MessageUI
class Information : UIViewController, MFMailComposeViewControllerDelegate{
var myMail: MFMailComposeViewController!
@IBAction func sendReport(sender : AnyObject) {
if(MFMailComposeViewController.canSendMail()){
myMail = MFMailComposeViewController()
//myMail.mailComposeDelegate
// set the subject
myMail.setSubject("My report")
//To recipients
var toRecipients = ["lipeilin@gatech.edu"]
myMail.setToRecipients(toRecipients)
//CC recipients
var ccRecipients = ["tzhang85@gatech.edu"]
myMail.setCcRecipients(ccRecipients)
//CC recipients
var bccRecipients = ["tzhang85@gatech.edu"]
myMail.setBccRecipients(ccRecipients)
//Add some text to the message body
var sentfrom = "Email sent from my app"
myMail.setMessageBody(sentfrom, isHTML: true)
//Include an attachment
var image = UIImage(named: "Gimme.png")
var imageData = …
Run Code Online (Sandbox Code Playgroud) 我正在Swift中编写一个iOS游戏,我想在最后添加一个高分标签.我认为保存功能是正确的,但负载一是给我带来问题的.我已经创建了一个实体("BestScores")和属性("classicBestScoreTF"):
要保存高分:
var bestscore25 = 1000
var score: int
func savescore() {
var appDel: AppDelegate = (UIApplication.sharedApplication().delegate as AppDelegate)
var context:NSManagedObjectContext = appDel.managedObjectContext!
var score25: AnyObject! = NSEntityDescription.insertNewObjectForEntityForName("BestScores", inManagedObjectContext: context) as NSManagedObject
score25.setValue(score, forKey: "classicBestScoreTF")
context.save(nil)
}
func loadscore() {
var appDel: AppDelegate = (UIApplication.sharedApplication().delegate as AppDelegate)
var context:NSManagedObjectContext = appDel.managedObjectContext!
bestScore25 = valueForKey("classicBestScoreTF") as Int
}
func endgame() {
if score > bestScore25 {
savescore()
loadscore()
bestScoreLabel.text = "Best Score: \(bestScore25)"
}
if score < bestscore {
loadscore()
bestScoreLabel.text …
Run Code Online (Sandbox Code Playgroud) 该方法showDialog(int)
从类型Activity
被弃用.
什么原因?以及如何解决?
在我的代码中,我使用presentViewController来调用我的第二个viewcontroller
[self presentViewController:secondController animated:YES completion:nil];
Run Code Online (Sandbox Code Playgroud)
当我打电话时我需要显示从左到右的动画(比如在navigationController中)
我不想使用navigationController,但我需要类似于presentViewController中的navigationController的动画......
objective-c uiviewcontroller navigationcontroller ios presentviewcontroller
我想发送带有PDF附件的电子邮件.我创建了PDF文件,然后我做了以下哪些错误我相信:
// locate folder containing pdf file
let documentsPath = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.DocumentDirectory, NSSearchPathDomainMask.UserDomainMask, true)[0] as! String
let pdfFileName = documentsPath.stringByAppendingPathComponent("chart.pdf")
let fileData = NSData(contentsOfFile: pdfFileName)
mc.addAttachmentData(fileData, mimeType: "pdf", fileName: chart)
Run Code Online (Sandbox Code Playgroud)
在发送电子邮件之前,我可以看到附件chart.pdf
,但是当我发送电子邮件时,它是在没有附件的情况下发送的,这是因为我没有正确附加文件.
ios ×6
android ×3
iphone ×3
swift ×3
objective-c ×2
attachment ×1
autorotate ×1
core-data ×1
crashlytics ×1
dialog ×1
email ×1
google-play ×1
ios6 ×1
ios8.3 ×1
ipad ×1
mfmailcomposeviewcontroller ×1
xcode ×1
xcode8 ×1