我的iPad应用程序支持所有方向,它在iOS 7中也运行良好.
但是在iOS 8中,以横向模式启动应用程序使我的登录视图在纵向框架内绘制横向视图.
在做了一些分析之后,我发现在Landscape中启动时应用程序窗口没有采用正确的方向.之后进行旋转会更正UI,因为从那时起它采用了正确的方向.
有人能引导我通过这个吗?提前致谢.
在My XcodeMy Assistant Editor中显示Xcode 的底部但是在另一个系统中所有其他Xcode它将在右侧显示然后我如何将我的xcode助手编辑器放入xcode的底部到右侧...

我有一个专为iPhone系列开发的应用程序,我曾经在iPad上运行它来测试它在iPhone 4s上的外观(因为它推出了iPhone 4s分辨率,尺寸,以及'2x'圆形按钮,用于全屏支持) .但是,现在当我使用iOS 8在我的iPad上运行它时,Xcode会忽略所有构建设置并像iPad一样运行它.iPad屏幕没有预测我的故事板限制.
我有:
Devices选项设置为iPhone项目设置中的常规选项卡Main storyboard file name并Main storyboard file name从中删除Info-plistLaunch Screen File的选项Use Size Classes中NO,仅为iPhone生成资产这是正常的行为吗?我想像以前一样使用iPad来测试iPhone 4s的分辨率.我确信我的应用程序不会因此而变得普及,但我认为这是一个问题.
出于某种原因,在Xcode 6中,当将视图固定为0顶部,底部,左侧和右侧时,它给出了16个点的左右边距.
这是一个新功能吗?
如果不将边距设置为-16,我无法弄清楚如何修复它
这是一些截图.

我用Xcode 6.1(6A1046a)得到了这个,就像我用6.0做的那样:
var dog:String = "Dog"
let plural:Character = "s"
let dogs:String = dog.append(plural)
Run Code Online (Sandbox Code Playgroud)
游乐场报道:
游乐场执行失败:: 29:23:错误:无法使用类型为'Character'的参数调用'append'让狗:String = dog.append(复数)
为什么我不能这样做,虽然这很好:
dog.append(plural)
Run Code Online (Sandbox Code Playgroud) 我是ios开发的新手,请原谅我.我正在逐步采取它,我想知道如何制作一个图像,我想成为视图控制器中的背景,以便我可以添加它?
我用NSDictionary对象创建了一个NSArray,其中包含从api下载的内容.我还在main.storyboard上创建了一个tableview对象,其中一个原型单元格带有UIImage标签,两个文本标签作为其内容.如何将数据从数组放到表中,以便每个与我的原型具有相同样式的单元格显示来自数组的NSDictionary的内容.
所以我设置了这个代码:
for (int index = 0; index < [dataArray count]; index++) {
dataToSend = [dataArray objectAtIndex:index];
BOOL sent = [self.manager updateValue:dataToSend
forCharacteristic:(CBMutableCharacteristic *)self.cashierCarachteristic
onSubscribedCentrals:nil];
if (!sent) {
NSLog(@"Failed to send :(");
}
}
Run Code Online (Sandbox Code Playgroud)
然而,我的问题在于,在发送来自阵列的第一段NSData之后,所有后续发送都失败了.我总是得到这个:
2014-10-24 17:01:45.162 Pengoo [1957:60b]发送数据:94
2014-10-24 17:01:45.164 Pengoo [1957:60b]发送数据:94
2014-10-24 17:01:45.166 Pengoo [1957:60b]发送失败:(
2014-10-24 17:01:45.167 Pengoo [1957:60b]发送数据:94
2014-10-24 17:01:45.168 Pengoo [1957:60b]发送失败:(
2014-10-24 17:01:45.169 Pengoo [1957:60b]发送数据:94
2014-10-24 17:01:45.170 Pengoo [1957:60b]发送失败:(
谁能告诉我为什么会这样?我是否可能将我的经理设置错误,或者这是CBPeripheralManager或... 的限制?
在此先感谢大家:)
我正在获取图像,Size并使用下面的代码.它的工作非常好Xcode 6.0.1.更新后Xcode 6.1,我得到错误:
'UIImage?' does not have a member named 'size'
var image = UIImage(named: imageName)
let sizeOfImage = image.size
Run Code Online (Sandbox Code Playgroud)
这是我的代码或Apple的错误吗?请帮帮我.TIA.
我无法理解并找到任何向我展示NSLocalizedString实际用途的资源.即使是Apple文档..
NSLocalizedString(<#key: String#>, tableName: <#String?#>,
bundle: <#NSBundle#>, value: <#String#>, comment: <#String#>)
Run Code Online (Sandbox Code Playgroud)
好吧,假设我在一个文件中创建了这个,我该如何为不同的语言编写这个?
我是否创建了整个文件的本地化版本,如:en.thisfile.swift,es.thisfile.swift,fr.thisfile.swift?
或者我在不同的包或表中创建新语言?
NSLocalizedString("hello", tableName: "en", value: "hello", comment: "wtf is this anyways?")
NSLocalizedString("hello", tableName: "fr", value: "bonjour", comment: "wtf is this anyways?")
NSLocalizedString("hello", tableName: "es", value: "hola", comment: "wtf is this anyways?")
Run Code Online (Sandbox Code Playgroud)
然后如何在设置后在随机文件中使用它?
println("dat nslocalizedstring I created, which will automatically know what to write??")
Run Code Online (Sandbox Code Playgroud) xcode6 ×10
ios ×5
swift ×5
xcode ×5
ios8 ×4
ipad ×2
iphone ×2
objective-c ×2
autolayout ×1
bluetooth ×1
character ×1
orientation ×1
string ×1
uiimage ×1
uitableview ×1