Tag: xcode6

'SessionDelegate'没有名为'xxx'的成员

我以前问过关于如何使用可选方法创build协议的问题。 答案几乎是使用Objective-c。 在这里看到 。 我做了,一切正常,因为我正在使用 var delegate: SessionDelegate?; 也就是说,“委托”是一个可选的SessionDelegate。 为了调用该委托的方法,我可以简单地写: self.delegate?.willOpenSession?(self); 哪个很好 但是,然后我虽然,为什么使委托可选? 所以我改变了它: var delegate: SessionDelegate; 显然,通话也改变了: self.delegate.willOpenSession?(self); 问题是,这最后一行(和其他types)说:'SessionDelegate'没有名为'willOpenSession'的成员。 为什么这不工作? 这是我的代码: SessionDelegate.h @class Session; @protocol SessionDelegate <NSObject> @optional – (BOOL)willOpenSession:(Session*)session; – (void)didOpenSession:(Session*)session; – (void)didFailOpenningSession:(Session*)session withError:(NSError*)error; – (BOOL)willCloseSession:(Session*)session destroyingToken:(BOOL)destroyingToken; – (void)didCloseSession:(Session*)session destroyingToken:(BOOL)destroyingToken; @end XXX桥接,Header.h #import <Foundation/Foundation.h> #import <FacebookSDK/FacebookSDK.h> #import "SessionDelegate.h" Session.swift import Foundation protocol Session […]

JSON和Xcode 6 UITableView

我需要一个将Wcf服务URL的一些Json结果绑定到Xcode 6中的UITableView的示例。我尝试了从几个教程中合并信息,我发现重点从Json创build一个NSDictionary并将其加载到标签或文本中box和另外一个几乎可以使用Json的NSArray和UITableView的方法,但是Json数据源是一个文件path而不是一个URL,并且缺less一些Xcode初学者需要的关键信息。 我是一个体面的面向对象程序员,我的培训是在.NET中,所以Obj-C,Cocoa和Xcode对我来说都是非常新的。 这个和所有的Xcode的变化,因为这些教程中的一些令人非常沮丧,所以如果任何人都可以善待我来通过它,我会非常感激。 质询 我应该使用TableViewController,还是只使用ViewController和UITableView? 为什么? 连接到我的服务URL(dataWithContentsFromURL?)的最佳方式是什么?我应该如何加载数据才能在UITableView中使用? NSDictionary的? NSArray的? NSMutableArray里? 一个新的项目是用一个ViewController创build的,这足够用了吗? 我可以只添加一个UITableView并完成我的任务? 我如何命名这个UITableView? 我如何设置其数据源? 结束目标 我的Wcf服务URL(下面)返回下面的字段,我想在这一点上就像加载每一行数据到我的UITableView,包含4个各自领域的列… 服务url – http://domain.com/GetEmployees.svc GetEmployeesMethod URL – http://domain.com/GetEmployees.svc/json/employees 列1(id)| 第2列(emp_Name)| 第3列(emp_Phone)| 第4列(emp_Cisco) 预先感谢您提供的任何帮助。 我到目前为止认为我的代码大部分是接近正确的,但是对Xcode是新的,我失去了绑定任何它到我的视图对象…

错误ITMS-90174:“缺less供应configuration文件 – iOS应用程序必须在名为embedded.mobileprovision的文件中包含供应configuration文件。

当我上传到Application Loader时,我收到以下消息: ERROR ITMS-90174: "Missing Provisioning Profile – iOS Apps must contain a provisioning profile in a file named embedded.mobileprovision." 我有这个包含在我的应用程序文件夹。 当我压缩,无论多么明显,我提供configuration文件,我收到这个错误试图上传我的苹果的应用程序。

问题,同时更改导航根视图控制器

我正在制作一个应用程序。 第一个用户必须login,然后他允许使用该应用程序。 成功login后,我希望用户直接切换到我的HomeViewController。 这是我的代码tho改变导航根视图,但它不工作 TermsConditionsController *firstViewController = [[TermsConditionsController alloc]init]; FirstPage *secondViewController = [[FirstPage alloc]init]; firstViewController.navigationController.viewControllers = [NSArray arrayWithObject: secondViewController]; FirstPage *nextScr = (FirstPage *) [self.storyboard instantiateViewControllerWithIdentifier:@"FirstPage"]; [self.navigationController pushViewController:nextScr animated:YES];

如何让iAdBannerView跨越Adaptive Layout Storyboard xcode 6的全部宽度

只是想知道如何在Xcode 6中存在的Adaptive Layout Storyboard的整个宽度上扩展iAdBannerView。 当我试图拉伸到angular落(所以我可以设置自动布局值),它确实允许它被拉伸。

如何从Xcode 6中删除arm64支持?

是否有可能不支持使用Xcode 6的arm64 ? 用答案更新(当selectAll时,该选项是可见的):

Xcode 6中的Shell脚本调用错误

我曾经用iOS-Universal-Framework编译通用静态库,并且工作正常,直到我将Xcdoe升级到6。 我得到了以下错误 ** BUILD SUCCEEDED ** 创build通用静态库/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool -static / Users / taofang / Library / Developer / Xcode / DerivedData / xxxxx / Build / Products / Debug -iphoneos / xxx.framework / xxx /Users/taofang/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/xxx.framework/xxx -o / Users / taofang / Library / Developer / Xcode / DerivedData /xxxxx/Build/Products/Debug-iphoneos/xxx.framework/xxx.temp错误:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/libtool:无法打开文件:/Users/taofang/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/xxx.framework/xxx(没有这样的文件或目录) 如果我使用Xcode 5来完成这项工作,那就没事了。 除此之外,我selectDevice作为我的编译目标,但是为什么libtool试图在iphonesimulator文件夹下打开文件?

Xcode 6中存放NSUserDefaults的plist文件在哪里?

我已经在我的应用程序中保存了一堆NSUserDefaults,现在我正试图找出在Xcode 6中我的应用程序的plist文件。下面是我的应用程序文档目录的path。 /Users/xxx/Library/Developer/CoreSimulator/Devices/676A8C61-67E4-43E0-A051-DA8BD84A84F5/data/Containers/Data/Application/B2E3C89C-48B7-4429-BBE3-FB830CD040F2/Documents 我在文件夹中的任何地方search,但我无法findplist文件的位置? 它位于其他地方吗? 我需要在其中手动编辑一个NSUserDefaults。 [[NSUserDefaults standardUserDefaults] setObject:@"1" forKey:@"firstTimeLaunch1257"]; [[NSUserDefaults standardUserDefaults] synchronize];

IBOutlet不能在SWIFT中连接

所有, 我有这个迅速 class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { @IBOutlet var tableView: UITableView! 所以,如果我进入故事板,我应该能够看到,我应该能够像这样连接它: 所以我应该可以去'新的参考出口',并将其拖到视图控制器(顶部的黄色选项卡),我应该看到'tableView'并连接它。 这不会发生,我很困惑,为什么!

Segue – 索引0超出空数组的边界

下午好, 我在有一个TableViewController工作的最后一步,我有问题的DetailViewController。 在这里你可以find我的Segue代码:当我声明“[self.carMakes objectAtIndex:[myIndexPath row]]”时,我遇到了问题,因为我收到错误:“ [__NSArrayM objectAtIndex::index 0超出空数组边界'有search错误,它是我的数组,是空的。 如果这能帮助你find我做错事情的地方,我会在下面发布更多的代码,因为我不知道为什么数组是空的,因为它在TableVlewController中显示一切正常。 CarTablewViewController.m @implementation CarTableViewController @synthesize carMakes = _carMakes; @synthesize carModels = _carModels; @synthesize carImages = _carImages; //@synthesize jsonArray = _jsonArray; – (void)viewDidLoad { [super viewDidLoad]; [self fetchJson]; [self.tableView reloadData]; } – (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { // Return the number of sections. return 1; } – (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section […]