问题标签 [xcode5.1]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
556 浏览

ios - 隐式转换会丢失整数精度 xcode 5.1

自 xCode 5.1 以来,我收到以下警告:

在以下行:

标记为“端口”

这是声明:

有人可以帮我解决这个警告吗?

0 投票
2 回答
391 浏览

ios - Xcode 5.1:delta iOS 6/7 设置哪里去了?

问题:

使用 Xcode 5.0 的用户可以选择指定一些值,这将指示视图在 iOS 6(3.5 英寸)设备而不是 iOS 7(4 英寸)设备上查看时应如何重新定位。

从 Xcode 版本 5.1 (5B130a) 开始,我无法再在环境中找到此功能。

谁能提供有关设置迁移到何处的信息?

或者

如果这些设置不再可用,是否有新的官方标准来说明我们应该如何管理设备高度的差异?

我已经考虑过使用约束作为解决方案,但我想问问社区,Apple 是否有任何官方公告?

我已经解析了 Apple 文档,但我没有看到此信息。

代码 5

Xcode5

Xcode 5.1

Xcode5.1

0 投票
1 回答
3158 浏览

ios - 由于未捕获的异常而终止应用程序。“零字符串参数”

今天早上我的应用程序运行良好。我更新到 Xcode 5.1,当我运行我的应用程序时,当我点击播放时它崩溃了。我的应用程序有一个模态按钮,可通向另一个视图控制器。第一个视图控制器是主屏幕。我启动应用程序,按下播放按钮,然后它大约一秒钟内什么都不做(而不是将我带到第二个视图控制器,即游戏本身),然后 Xcode 将我带到 main.m。这就是我的 main.m 的样子(没有修改过)。因此,当 Xcode 将我带到这里时,return UIApplicationMain以绿色突出显示的行在最右侧显示线程 1:signal SIGABRT

有人对正在发生的事情有什么建议吗?

- - - 更新

我不确定这是否有帮助(因为我仍然是初学者,但我认为就是这样)。它说:

{

这是视图加载的更新问题

0 投票
2 回答
327 浏览

iphone - 无法将 iPhone 连接到 Xcode 5.1?

我已从 Apple.com 注册。以前我也将应用程序上传到 apple.itunsconnect.com。我只是升级我的 mac os 和 Xcode 并尝试连接 iPhone。iPhone 已连接到系统,但在 Xcode 中未显示设备名称

我是 Xcode 新手,我有小型 iPhone 移动应用程序,我正在尝试将我的 iPhone 连接到 Xcode 5.1 但无法检测到。

在我的 mac 系统中显示/连接 iPhone。在 Xcode 中没有显示?

谁能告诉我如何将 iPhone 连接到 Xcode 5.1?

提前致谢..

0 投票
1 回答
3971 浏览

ios - 不断收到“在 YourAppName 中打开此页面?”的警报视图消息?尝试从 Safari 启动应用程序时

我需要能够从 Safari 浏览器启动我的 iOS 应用程序。所以我.plist在 xcode 中找到了我的文件,并在我的 URL 方案中添加了一个项目并输入了myappname.

现在,如果我去 Safari,myappname://在 URL 地址栏中输入并提交它,它会向我显示一个UIAlertView带有andOpen this page in "MyAppName"?选项的选项。CancelOpen

如果我点击Open它成功打开我的应用程序,但是我想这样做而不UIAlertView弹出该消息。

我已经在网上进行了一些快速搜索,看起来人们总是在新的 iOS 更新出现时遇到问题,而且我似乎找不到最近的解决方案或答案。

我使用的是装有 iOS 7.1 的 iPhone 4s,如果这有什么不同,我正在使用 xcode 5.1。

此外,我一直在使用 App Store 中的一个名为“Frontback”的应用程序,它成功地完成了同样的事情,而没有在 Safari中UIAlertView显示,所以这绝对是可能的。

谢谢您的帮助。

0 投票
0 回答
93 浏览

ios7 - 不是rootViewController时如何使用UISplitViewController?

我有一个导航视图控制器,其中包含多个按钮。当我按下按钮时,我想转到另一个视图,即我的 UISplitViewController 的 DetailView。问题是我可以转到 Detail View 但它无法进入掌握视图 - UISplitViewController 不起作用。我知道问题与 SplitViewController 不是根视图控制器这一事实有关。我该如何解决这个问题?我应该在哪里写答案的代码?

0 投票
1 回答
2301 浏览

ios - Launch Image in asset catalog only has spaces for 2x and R4

I'm starting the design phase of an app and this is the first app I've ever built. The app is currently using iOS SDK 7.1 and has a Deployment Target of 7.0

Even after all of the research I have done so far here on stackoverflow and reading the iOS 7 design guidelines, I am still having trouble figuring this out.

When I go to my asset catalog, and click on LaunchImage, it only has two slots. One for 2x and one for R4. However, a lot of the screenshots I keep seeing online have more slots than that.

If I click on the + symbol and select New Launch Image, then this new LaunchImage has a ton of slots for iPhone and iPad, even for iOS 5, 6, and 7.

Am I correct in thinking that I am only supposed to use the default LaunchImage with slots for 2x and R4, because my app has a deployment target of iOS 7.0 and the only iPhone models that iOS 7 supports have retina displays?

EDIT: AppIcon in the asset catalog is similar. It only has 3 slots, and all of them have 2x underneath them.

0 投票
1 回答
81 浏览

xcode - Xcode Interface Builder 预览中的 UITextView 搞砸了

所以我在 Xcode 5.1 中看到了一个烦恼。添加 TextView 时,我经常进入不显示所有文本的状态

在此处输入图像描述

当我双击它以允许我编辑文本时,我可以很好地看到它。有人知道是什么原因造成的吗

在此处输入图像描述

0 投票
1 回答
122 浏览

xcode - 如何向 Xcode 版本控制时间线添加修订?

当我启动比较视图(视图 > 版本编辑器 > 显示比较视图)时,它会显示我的 git 存储库的两个版本的时间线:

在此处输入图像描述

如果我点击中间的时钟图标,我可以准确地选择我想要比较的版本。

问题是只有一个版本可用(浅灰色线),其余的都没有出现(即它们是深灰色线)。例如,在上面的屏幕截图中,用户只能选择 3 个修订版。

存储库肯定有更多的修订,当我转到源代码控制 > 历史时,我看到了很多提交。

如何使我的所有修订(或至少一个特定修订)在此列表中可用?

0 投票
1 回答
1043 浏览

xcode - UISearchBar 在点击时不显示键盘(仅适用于 Xcode 5.1、iOS 7)

这是我的源代码

它适用于 Xcode 5.0 上的 iOS 5、6、7

将 xcode 更新到 5.1 后,我的 uisearchview 在 iOS 7 和 iOS 7.1 中不显示键盘,但在 iOS 6 及更早版本中,它可以工作。

我不知道解决方案。

你能给我一些解决方案吗?

谢谢