我提交了一份审核申请,我注意到我提交的版本存在与之相关的问题,说Build 168 does not contain the correct beta entitlement. 我无法在任何地方找到有关此错误的信息.它意味着什么,是否会抑制审核流程?我的应用程序今天提交了Xcode 5.1.1 for iOS 7(不是Xcode GM).也许这与Testflight有关?

我刚刚将Xcode更新到版本10.3(10G8)。
现在,我的项目未运行并出现以下错误:

/* com.apple.actool.errors */
: error: Failed to find a suitable device for the type IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x) with runtime iOS 12.4 (12.4 - 16G73) - com.apple.CoreSimulator.SimRuntime.iOS-12-4
Failure Reason: Failed to create new simulator device that matches IBSimDeviceTypeiPad2x (com.apple.dt.Xcode.IBSimDeviceType.iPad-2x) for runtime iOS 12.4 (12.4 - 16G73) - com.apple.CoreSimulator.SimRuntime.iOS-12-4 (Invalid runtime: com.apple.CoreSimulator.SimRuntime.iOS-12-4)
Underlying Errors:
Description: Invalid runtime: com.apple.CoreSimulator.SimRuntime.iOS-12-4
/* com.apple.actool.compilation-results */
/Users/xxx/Library/Developer/Xcode/DerivedData/xxxxx-dxlvvymxzdfqjubnuntqlxggtyja/Build/Intermediates.noindex/xxxxx.build/Debug-iphonesimulator/xxxxx.build/assetcatalog_generated_info.plist
Run Code Online (Sandbox Code Playgroud)
嗨,我正在开发iPhone应用程序,我试图为edittext设置一个边框.我是按照以下方式做到的:
int borderWidth = 1;
CALayer *leftBorder = [CALayer layer];
leftBorder.borderColor = [UIColor whiteColor].CGColor;
leftBorder.borderWidth = borderWidth;
leftBorder.frame = CGRectMake(0, textField.frame.size.height - borderWidth, textField
.frame.size.width, borderWidth);
[textField.layer addSublayer:leftBorder];
Run Code Online (Sandbox Code Playgroud)
我对IB中的edittext设置了一些约束,这样当我旋转设备时,它会根据它调整文本字段的宽度.我的问题是调整edittext的宽度而不是调整我为编辑文本设置的CALayer的宽度.所以我想我必须为我的CALayer项目设置一些约束.但我不知道该怎么做.有人知道吗?需要帮忙.谢谢.
如何让我快速圈出画面?
我的ViewController:
import UIKit
import Foundation
class FriendsViewController : UIViewController{
@IBOutlet weak var profilPicture: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()
profilPicture = UIImageView(frame: CGRectMake(0, 0, 100, 100))
}
}
Run Code Online (Sandbox Code Playgroud)
我profilPicture = UIImageView(frame: CGRectMake(0, 0, 100, 100))什么都不做..
例如:http://www.appcoda.com/ios-programming-circular-image-calayer/
我已经以UIToolBar编程方式创建了一个并UITextField在其上添加了一个.现在,当我点击另一个文本字段时,我需要将该工具栏放在键盘上方.
UIToolbar *toolBar=[[UIToolbar alloc]initWithFrame:CGRectMake(0,400, 320, 60)];
[self.view addSubview:toolBar];
UITextField *txtView=[[UITextField alloc]initWithFrame:CGRectMake(0, 400, 260, 30)];
txtView.backgroundColor =[UIColor grayColor];
txtView.placeholder=@"Address";
UIBarButtonItem *txtfieldItem=[[UIBarButtonItem alloc]initWithCustomView:txtView];
toolBar.items =[NSArray arrayWithObject:txtfieldItem];
Run Code Online (Sandbox Code Playgroud) A UISegmentedControl在iOS 13中具有新外观,并且现有代码更改分段控件的颜色不再像以前那样起作用。
在iOS 13之前,您可以设置tintColor和,以用于分段控件周围的边框,分段之间的线条以及所选分段的背景颜色。然后,您可以使用带有的前景色属性更改每个句段标题的颜色titleTextAttributes。
在iOS 13下,tintColor什么都不做。您可以设置分段控件backgroundColor以更改分段控件的整体颜色。但是我找不到任何方法来更改用作所选段背景的颜色。设置文本属性仍然有效。我什至尝试设置标题的背景色,但这只会影响标题的背景,而不会影响所选片段的其余背景色。
简而言之,您如何修改UISegmentedControliOS 13中当前选定的段的背景颜色?是否有使用公共API的适当解决方案,而无需深入研究私有子视图结构?
在iOS 13中,没有针对UISegmentedControl或的新属性,UIControl并且这些更改UIView均不相关。
我有新闻ViewController和TeamViewController.所述TeamViewController含有选择加入到阵列时teamObjects的的tableView.我想添加这个数组,NSUserDefaults所以我可以从NewsController包含url请求的地方访问它们,其中需要teamObjects.但是我一直得到:
'尝试为关键团队插入非属性列表对象("")
如果有更好的方法而不是存储它,我愿意接受其他建议 NSUserDefaults
didSelectRowAtIndexPath 方法
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
tableView.deselectRowAtIndexPath(indexPath, animated: true)
let team = self.teamArray[indexPath.row] as Team
var removed = false
for (index, value) in enumerate(self.teamSelected) {
if (value == team) {
self.teamSelected.removeAtIndex(index)
removed = true
}
}
if (!removed) {
self.teamSelected.append(team)
}
var userDefaults = NSUserDefaults.standardUserDefaults()
userDefaults.setValue(self.teamSelected, forKey: "teams")
userDefaults.synchronize()
tableView.reloadData()
}
Run Code Online (Sandbox Code Playgroud)
我的目标
class Team: NSObject{
var id: Int!
var name: NSString!
var …Run Code Online (Sandbox Code Playgroud) 我需要创建一个UILabel背景颜色,我想添加一些左边填充,但我在这里找到的每个解决方案似乎都是一个讨厌的黑客.
从iOS 5开始实现这一目标的"标准"方法是什么?
编辑
用于说明我的场景的屏幕截图.-

我只是想摆脱像这样弹出的警告:
ld: warning: directory not found for option '-F/Users/m/Desktop/FacebookSDK'
ld: warning: directory not found for option '-F/Users/m/Desktop/FacebookSDK/FBAudienceNetwork'
ld: warning: directory not found for option '-F/Users/gavin/Downloads/shaffiulla11-bat-b86d81d8adc6'
ld: warning: directory not found for option '-F/Users/gavin/Desktop/shaffiulla11-bat-b86d81d8adc6'
ld: warning: ignoring file /Users/Gavin/Desktop/FacebookSDK/Bolts.framework/Bolts, missing required architecture x86_64 in file /Users/Gavin/Desktop/FacebookSDK/Bolts.framework/Bolts (2 slices)
Run Code Online (Sandbox Code Playgroud)
显然我现在正在使用不同的目录,因为我的驱动器由于逻辑板问题而进行了多次重新格式化,并且我想知道最方便的方法来摆脱这些错误.感谢您的时间和帮助.
我试图在Swift的UIButton的子类中添加一个double值尝试所有类型的inits并获取和设置选项,但我无法让它工作.
所以我从这开始
class CVSTButton : UIButton {
var cvstPosition: Double
required init(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
super.init(coder: aDecoder)
}
}
Run Code Online (Sandbox Code Playgroud)
然后我试过:
class CVSTButton : UIButton {
var cvstPosition: Double {
get {
return self.cvstPosition
}
set {
self.cvstPosition = newValue
}
}
required init(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
super.init(coder: aDecoder)
}
}
Run Code Online (Sandbox Code Playgroud)
我在这里没有弄错....请帮忙......
ios ×8
swift ×3
autolayout ×1
calayer ×1
ios13 ×1
objective-c ×1
storyboard ×1
uibutton ×1
uiimageview ×1
uikit ×1
uilabel ×1
uitextfield ×1
uitoolbar ×1
xcode ×1