草庐IT

identified

全部标签

swift - 收到错误 : Use of unresolved identifier 'NSRectFill' , 但 __NSRectFill 有效,为什么?

我是Swift4的新手,使用Xcode9编写代码。尝试创建一个非常简单的MacOS绘图应用程序,只是为了更多地了解Swift。我复制了一些非常简单的教程代码,但收到错误消息“使用未解析的标识符‘NSRectFill’。我注意到编译器提示我使用__NSRectFill并且这有效...但是为什么呢?我做错了什么吗?importCocoaclassGraphView:NSView{overridefuncdraw(_dirtyRect:NSRect){super.draw(dirtyRect)NSColor.white.setFill()NSRectFill(bounds)}}

ios - Playground : Use of unresolved identifier 'NSColor'

我尝试在Xcode6-Beta4中玩playground,并输入以下内容:importUIKitletcolor=NSColor.blueColor()错误是:Useofunresolvedidentifier'NSColor'谁能解释一下为什么? 最佳答案 如果您正在为iOS开发并因此使用importUIKit(如您的代码所示),则相应的颜色界面来自UIColor。因此:对于旨在同时在iOS和OSX中工作的代码,您可以使用:#ifos(macOS)||targetEnvironment(macCatalyst)importAppK

iphone - 新的 Swift 应用程序列表器错误 : "No matching provisioning profiles found", "App ID with Identifier ... is not available"

我从Apple的开发者网站下载了Lister应用程序的示例代码,并尝试为运行iOS8Beta5的iPhone5S构建Swift版本。我已将所有内容更改为com.mycompany.Lister,但是当我尝试构建它时,出现以下错误。未找到匹配的配置文件没有一个有效的配置文件允许指定的权利:com.apple.developer.ubiquity-container-identifiers。Xcode可以通过从成员(member)中心下载新的配置文件来解决此问题。所以我点击“修复问题”,它加载了几秒钟并返回给我这条消息:标识符为“com.example.apple-samplecode.L

Identifier ‘‘ has already been declared,变量重定义/重新声明/重复声明,chrome devtool console中的特殊的行为

console,一次性输入进去varxxxx=2;varxxxx=3;可以letyyyy=2;letyyyy=3;UncaughtSyntaxError:Identifier'yyyy'hasalreadybeendeclared分两次输入console,可以varmmmm=2;letmmmm=3;UncaughtSyntaxError:Identifier'mmmm'hasalreadybeendeclared分两次输入console,UncaughtSyntaxErrorlettttt=2;vartttt=3;UncaughtSyntaxError:Identifier'tttt'hasa

ios - 获取 UITableView 错误 "unable to dequeue a cell with identifier cell"

我正在创建一个带有UITableViewController的应用程序,但出现错误:'unabletodequeueacellwithidentifiercell-mustregisteraniboraclassfortheidentifierorconnectaprototypecellinastoryboard'我不明白如何找到解决方案并修复它。2018-09-1501:28:28.609848+0300Yemekler[6554:482441]***Assertionfailurein-[UITableView_dequeueReusableCellWithIdentifier:

ios - Xcode 6 测试版 4 : Use of Unresolved Identifier 'NSFetchedResultsChangeInsert'

刚刚安装了Xcode6Beta4,这个以前编译的代码现在在NSFetchedResultsChangeType的每个开关上都失败并显示“UnresolvedIdentifier”。我检查了发行说明,当然也浏览了这里,看看是否有其他人遇到过这种情况,但到目前为止还没有任何结果。任何信息表示赞赏!谢谢!funccontroller(controller:NSFetchedResultsController,didChangeSectionsectionInfo:NSFetchedResultsSectionInfo,atIndexsectionIndex:Int,forChangeType

ios - SecCopyErrorMessageString swift 给出 "Use of unresolved identifier"

尝试使用SecCopyErrorMessageString来解释errorCode。swift:varresult:OSStatusresult=SecItemAdd(queryasCFDictionary,nil);ifresult!=errSecSuccess{leterrorDescription=SecCopyErrorMessageString(result,nil)//NSLog("KeychainError:%@",errorDescription)“Unresolvedidentifier”的错误从“SecCopyError...”开始 最佳

ios - swift - "use of unresolved identifier"

我正在学习Swift!我想在xib上创建主界面。但是有错误“使用未解析的标识符”。从MainViewController添加代码importFoundationpublicclassMainViewController:BaseViewController{overridefuncviewWillAppear(animated:Bool){super.viewWillAppear(animated)//TODO:Writeyourtestcodehere//...}}更新:(添加图片) 最佳答案 1)右键单击​​您的MainView

ios - Xcode 6 : how to set a custom bundle identifier?

在Xcode6中,我需要为我的应用商店目标设置一个自定义包标识符。我正在尝试这个:我在Xcode左上角点击我的项目。我看到项目设置中心Pane、“常规”选项卡、“身份”部分。我看到“BundleIdentifier”字段并单击以对其进行编辑。文本变为黑色可编辑文本和灰色不可编辑文本的混合体。如何编辑包标识符? 最佳答案 (找到答案-在这里发帖是为了帮助别人,如果人们有意见的话)Xcode默认会根据产品名称自动生成包标识符。要编辑目标的包标识符:点击左上方项目设置中心Pane中的“显示项目和目标列表”图标。点击目标。点击“信息”选项卡

uitableview - "Use of unresolved identifier"与 swift

我正在用Swift重写我的一个应用程序,它显示南科哈拉的实时天气数据。到目前为止喜欢swift!我有一个小问题阻碍了一切。我有一个基于标签栏的应用程序,仅限iPad。我的其中一个选项卡是一个UIViewController,在Storyboard中添加了一个TableView以显示NOAA预报。我有一个数据类Data,它从我们的服务器检索列表并在viewDidLoad中创建常量List。它是一个数组数组,每个子数组中有四个字符串。我已经验证它在那里,因为我可以创建一个常量:List[0]和println所有字符串。但是,当我使用它来填充TableView时,出现“使用未解析的标识符”错