- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我使用本教程实现了一个简单的 iOS 相机应用程序
http://www.appcoda.com/ios-programming-camera-iphone-app/
并尝试让它在 Galaxy s 4 上运行。
该应用程序由一个用于显示照片的 UIImageView 和 2 个按钮组成。一个用于使用相机拍照,一个用于选择照片。这些按钮与以下操作相关:
- (IBAction)takePhoto:(UIButton *)sender {
<pre><code>UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentViewController:picker animated:YES completion:NULL];
</code></pre>
<p>}</p>
<p>-(IBAction)selectPhoto:(UIButton *)sender {</p>
<pre><code>UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentViewController:picker animated:YES completion:NULL];
</code></pre>
}
该应用程序在我的 iOS 设备上运行良好,但在 Android 设备上却崩溃了。有谁知道,为什么这不起作用或者如何在具有可移植性的跨平台应用程序中实现相机访问?
最佳答案
此版本的 Apportable 并未完全实现对相机的访问。如果您有一个应用程序需要它,那么直接使用 BridgeKit 添加它是相当简单的。目前我们正在致力于全面的相机支持,当它准备好供一般使用时我们将发布它。
关于android - 与 Apportable 交叉编译相机应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20323470/
可以建.a或 .so与构建应用程序主体一起使用的库文件? 如果不是,是否可以构建一个包含多个子项目的 Xcode 项目? 最佳答案 支持子项目;它们实际上将使用构建系统在内部构建为静态库 (.a)。
Apportable (beta1) 是否像 Apple 的实现一样支持 CF 类型和 NS 类型之间的免费桥接?如果部分支持,我如何获得支持它的类列表? 如果还没有,它是计划中的还是不可用的? 最佳
在过去的 30 分钟里,我一直在查看 Apportable,现在正在安装它。 查看文档后,我看不出是否支持 UIKit。 是吗?如果是这样,Android 上的外观和感觉如何? 最佳答案 Starte
怎么看 NSLog或任何普通 printf输出与 Apportable?我用 apportable debug 运行我的程序和 run gdb,但没有输出。 最佳答案 NSLog 和 printf 被
所以,我已经使用 apportable 成功地为 android 制作了 tweejump iOS 应用程序。并且 apportable 还在设备上安装了该应用程序。但神秘的是,我无法在 tweeju
我刚刚尝试使用 Apportable 编译一个应用程序并得到一个异常: In file included from /Users/jblues/ibipit/voucherBlaster/Vouche
我正在尝试安装 Apportable SDK。我将命令从“我的帐户”页面复制到终端,但没有下载,而是发生了以下情况: % Total % Received % Xferd Average S
我使用本教程实现了一个简单的 iOS 相机应用程序 http://www.appcoda.com/ios-programming-camera-iphone-app/ 并尝试让它在 Galaxy s
我现在正尝试使用 Apportable 移植我的 Cocos2d 1.x 项目之一,在编译阶段出现以下错误: apk = env.BuildAPK(os.path.join(env['VAR
我以前没有使用过Apportable。我曾经下载过他们的免费 SDK,并且已经成功安装了他们的 SDK,但在任何地方都找不到 Apportable 文件夹。安装后我收到了消息,终端消息如下: Too
我正在尝试完整版的 apportable,但我遇到了 CoreData 问题: 我在 configuration.json 中有正确的特性: "FEATURES": ["opengles2","lan
我正在使用 Apportable 来移植我的游戏,它运行得相当好。但是现在这里有一个问题。 Apportable 似乎在生成 apk 包时链接了一些库,这使得 .apk 文件更大。因此,最简单的 Sp
我试过打开邮件附件。通过以下方法接收 url - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceA
看起来我已经非常接近让我的应用程序与 Apportable 一起工作了,但我一定遗漏了一些东西。我可以在我的 Android 设备上编译和加载它,但我不知道如何获取可以上传到 Play 商店的版本。
Ubuntu 的 apport 的 sys.excepthook 对我来说总是崩溃,可能是因为我在这台机器上没有 root 权限。反正对我自己的发展也没用。我怎样才能摆脱它? 最佳答案 我不确定为什么
我正在尝试按照 Store Kit 文档在我的应用程序的适配安卓版本上进行应用内购买。大多数步骤都非常简单,我已经成功地将 apk 上传到谷歌开发者控制台。 但是,我现在意识到,当尝试通过开发人员控制
我用 tutorial 做了一个游戏,在iphone和ipad中是纵向的,但是当移植到android时,屏幕方向总是横向的。有没有办法强制 android 纵向播放? 我在 Release.final
有人知道使用 Apportable 移植 cocos2d-x 项目的详细信息吗?它似乎不像移植一个 cocos2d-iphone 项目那么简单。我一直试图通过更改 CCPlatformConfig.h
我在生产服务器上遇到问题,它是 groovy/grails 应用程序,我使用quartz 来运行许多 cron。 有一个 cron,一旦启用就会导致 JVM 崩溃。我不知道为什么。我找不到任何故障转储
第一次尝试使用apportable。不断收到此错误: TypeError: 'NoneType' object is not subscriptable 还有 NSUnderlyingError =
我是一名优秀的程序员,十分优秀!