xcode6

Pass Full Array between view controllers in swift

夙愿已清 提交于 2019-12-14 02:34:04
问题 I am trying to pass a full array between view controllers but cannot figure out the missing piece. In view controller one I have: protocol ExclusionsViewViewControllerDelegate{ func ExcUpperDidFinish(controller:ExclusionsView) func ExcLowerDidFinish(controller:ExclusionsView) } class ExclusionsView: UIViewController, UITableViewDataSource, UITableViewDelegate { var delegate:ExclusionsViewViewControllerDelegate? = nil var ExcLowerArray:[Int]=[] var ExcUpperArray:[Int]=[] @IBOutlet var

Xcode 6 Storyboard crashing when scrolling to particular ViewController

筅森魡賤 提交于 2019-12-14 01:40:53
问题 I have upgraded to X-code 6.0.1 and now in Storyboard, a couple of viewControllers are missing.. when I try to Scroll to them it stops just before them, X-Code freezes and I have to Force it shut. I have validated the XML and that seems fine. Not sure what this might be has anyone had any similar issues? 回答1: I was having a similar issue and was able to fix by deleting the xcuserdata folder. It's worth a try: Close Xcode Right click on your .xcodeproj and Show Package Contents Delete the

Swift: Memory not clearing when I segue to another view controller, recieving memory warning

╄→гoц情女王★ 提交于 2019-12-14 00:24:52
问题 I am building an application in Xcode 6.2, for iOS 8.1. I have a UIViewController ( LevelViewController ) which contains a UICollectionView whose cells each represent a level in my game (each one has a label w/ a number). Once one of the cells is selected I perform a show segue to an SKScene which loads all the data for that particular level.I also have a "menu" button which performs a show segue back to the main menu. Functionally this all works, however I am having serious memory problems

Strange Issue with NSURL with Xocode6.1

好久不见. 提交于 2019-12-13 23:12:04
问题 I have a strange issue with Xcode6.1 _mainURl is my ' ServerLink ' service is ' GetUserById ' NSString* str = [NSString stringWithFormat:@"%@%@",_mainURl,service]; NSURL *url = [NSURL URLWithString:str]; When I append two strings and Create a url with NSURL , url getting 'null' But, When I directly given the server link followed by serviceName I can generate URL. NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"ServerLink/GetUserById"]]; 回答1: Based on what you have written, the

Xcode duplicate symbol

我与影子孤独终老i 提交于 2019-12-13 21:13:30
问题 Any suggestions please: duplicate symbol _OBJC_CLASS_$_Reachability in: /Users/retributionxd/Library/Developer/Xcode/DerivedData/RevEye-doarrfgrbaqxejbxnrhmfdcgqgka/Build/Intermediates/RevEye.build/Debug-iphonesimulator/RevEye.build/Objects-normal/x86_64/Reachability.o /Users/retributionxd/Desktop/amar/reveye/RevEye/WikitudeSDK.framework/WikitudeSDK(Reachability.o) duplicate symbol _OBJC_METACLASS_$_Reachability in: /Users/retributionxd/Library/Developer/Xcode/DerivedData/RevEye

getter attribute on property does not match inherited from NSOperation

落爺英雄遲暮 提交于 2019-12-13 18:29:45
问题 I have recently updated to xCode 6.1 and ever since then I'm getting this warning msg for on my project Which was running smoothly without errors and warnings getter attribute on property does not match inherited from NSOperation Below is my code @interface HttpTransceiver : NSOperation { @private ServiceRequest *m_serviceRequest; BOOL m_executing; BOOL m_finished; NSURLConnection *m_urlConnection; NSInteger m_statusCode; NSMutableURLRequest *m_urlRequest; NSMutableData *m_receivedData;

How to trigger a break when an Array is empty?

删除回忆录丶 提交于 2019-12-13 18:18:20
问题 In my app, I have a problème when I try to reach an index in an Array, the Array is actually empty. I cannot find what is emptying it so I was wondering if it's possible with the debugger to create a dynamic breakpoint that will pop up when my array is empty. So as soon as something is either resetting the array or taking away its last object, I'd like to know. I tried to create a symbolic breakpoint with "myArray.isEmpty == true" as the condition but it doesn't look to work the way I want.

Xcode 6 Testing Target Troubles

[亡魂溺海] 提交于 2019-12-13 17:27:02
问题 I've been going through many questions and answers here, and have ended up in a quandary. Now that I'm happy with the state of my project code, I wanted to implement unit testing. So I added a testing target, can I get it to compile correctly? No.... I'm sure it's something simple, but I cannot work it out. The project contains 2 3rd party private frameworks. My test target bundle loader parameter is set to: $(TEST_HOST) My test target test host parameter is set to: $(BUILT_PRODUCTS_DIR)/My

Duplicate localized resource “/Localizable.strings” found xcode 6.1

断了今生、忘了曾经 提交于 2019-12-13 16:23:21
问题 I am adding multiple languages to an iOS application from .xliff files. On the first import, all works as planned and everything comes is and works great. On the second, however, it will tell me: Duplicate localized resource "XXX/Localizable.strings" found It appears that it isn't grouping the files correctly, even though they are in the appropriate locations in finder. Any ideas? 回答1: I couldn't get it to work properly but here is my work around: I would import language 1, watch the files

Xcode 6.1 static library .a for iOS not generated

丶灬走出姿态 提交于 2019-12-13 12:07:39
问题 I tried to make a static library for my iOS device using Xcode 6.1. I choose on Xcode a new project with template Cocoa Touch Static Library and named it MyLib. For MyLib target I choose iPhone 6 in the Simulator. After the project was opened, I build MyLib with succeed. But if I look to the Products folder, the libMyLib.a is red and nothing happens, if I want show it with finder. In prior versions of Xcode it seems to work, how I find in some tutorials. I found the solution: the library is