Xcode Beta版本6.0(6A267n),iOS 8.0 Beta 5(12A4345d)
我正在获取一个与uikit库相关的未知日志,这是我以前从未见过的.
17545849:_UIScreenEdgePanRecognizerEdgeSettings.edgeRegionSize = 13.000000
它看起来像UIKit.h相关的库,但我找不到UIScreenEdgePanRecognizerEdgeSettings.
它是什么?
我正在使用iOS 7开发应用程序,我刚刚更新到iOS 8测试版.我下载了Xcode 6测试版,现在当我插入手机时,它将我的手机列入"不合格设备",并且不会让我开发在上面.为什么是这样?
更新到Xcode 6 beta 3后,编译器会因以下错误而崩溃:
/[Long-path-goes-here]/all-product-headers.yaml:4:13: error: Could not find closing ]!
'roots': [
^
fatal error: invalid virtual filesystem overlay file '/[Long-path-goes-here]/all-product-headers.yaml'
1 error generated.
Run Code Online (Sandbox Code Playgroud) 当我打开现有的Watchkit应用程序(Xcode 6.2)时,它会正确编译,启动模拟器(iPhone + Watch),然后是有意义的错误:
启动'xxx Watchkit Extension'SPErrorInValidBundleNoGizmoBinaryMessage时出错
所有模拟器都有这个问题(iPhone 5/5S/6/6 + - 38mm/42mm)
任何想法可以是什么问题?
由于某种原因,应用程序似乎不想在模拟器上运行,即使它曾经使用过.与其他Watchkit示例应用程序一样,同一项目中包含的iPhone应用程序也可以运行.
我想知道是否可以在UIVisualEffectView上设置角半径?这是我尝试过的代码:
@IBOutlet var blurView: UIVisualEffectView!
var blurLayer : CALayer{
return blurView.layer
}
override func viewDidLoad() {
super.viewDidLoad()
setUpLayer()
// Do any additional setup after loading the view.
}
func setUpLayer(){
blurLayer.cornerRadius = 50
}
Run Code Online (Sandbox Code Playgroud)
和
@IBOutlet var blurView: UIVisualEffectView!
override func viewDidLoad() {
super.viewDidLoad()
blurView.layer.cornerRadius = 50
// Do any additional setup after loading the view.
}
Run Code Online (Sandbox Code Playgroud)
不是他们的作品.
我正在尝试使用此处描述的新IB_DESIGNABLE选项创建一个在Interface Builder中实时更新的自定义控件.
- (void)drawRect:(CGRect)rect
{
CGContextRef context = UIGraphicsGetCurrentContext();
CGRect myFrame = self.bounds;
CGContextSetLineWidth(context, 10);
CGRectInset(myFrame, 5,5);
[[UIColor redColor] set];
UIRectFrame(myFrame);
NSBundle *bundle = [NSBundle mainBundle];
NSString *plistPath;
plistPath = [bundle pathForResource:@"fileExample" ofType:@"plist"];
UIImage *tsliderOff = [UIImage imageNamed:@"btn_slider_off.png"];
[tsliderOff drawInRect:self.bounds];
}
Run Code Online (Sandbox Code Playgroud)
当我在模拟器中运行时,我得到一个红色的盒子,我的图像在中心(正如预期的那样):

但是当我尝试使用Interface Builder时,它只显示为一个红色框(中间没有图像):

当我调试它:Editor-> Debug Selected Views时,它显示从bundle中加载的任何内容都是nil.plistPath和tsliderOff都显示为nil.
我确保btn_slider_off.png包含在Targets-> myFrameWork-> Build Phases-> Copy Bundle Resources中.
知道为什么Interface Builder在编辑期间没有看到png文件,但在运行时显示正常吗?如果我无法加载任何图像来渲染,"创建在Interface Builder中渲染的自定义视图"有点受限制...
根据rickster的解决方案进行编辑
rickster向我指出了解决方案 - 问题是文件不在mainBundle中,它们存在于[NSBundle bundleForClass:[self class]]中; 看来[UIImage imageNamed:@"btn_slider_off.png"]会自动使用mainBundle.
以下代码有效!
#if !TARGET_INTERFACE_BUILDER
NSBundle *bundle = [NSBundle mainBundle];
#else
NSBundle *bundle = …Run Code Online (Sandbox Code Playgroud) 有时我在操场上写一些代码需要一段时间才能完成.例如:
var values = [[Int]](count: 10000, repeatedValue: [Int](count: 73, repeatedValue: 0))
Run Code Online (Sandbox Code Playgroud)
每当游乐场想要刷新结果时,它必须运行那段代码(需要一段时间才能运行)并且它使整个Xcode非常缓慢.
我仍然想在操场上编写我的代码,因为它有一些非常好的功能来测试你的算法.但是,我发现我必须对某些代码行进行注释才能继续编写而不会中断.
有没有办法对Xcode说:"现在不要跑我的操场.我会告诉你什么时候准备好了."?
iTunes store operation failed
No eligible software found. Make sure this software is owned by your developer organization.
我从xcode 6验证应用程序时遇到上述错误.我不明白这个错误为什么它会来.谁能帮我解决这个错误?
谢谢
我在安装Xcode 6.2之后安装了额外的ios模拟器(7.1),现在模拟器名称如下所示:

如何更改名称?
xcode6 ×10
ios ×4
xcode ×4
ios8 ×2
objective-c ×2
swift ×2
cornerradius ×1
iphone ×1
watchkit ×1