xcode6

sending UIScrollView to Background

女生的网名这么多〃 提交于 2019-12-13 00:40:24
问题 I'm midway of finishing my app. I noticed that one of my views needs extra vertical space so I need to add a UIScrollView. Yet when I add that scroll view it overlaps everything else in the view. In simple words if I need to get it to work properly I have to delete everything off the view , add the scroll view, and then re-add everything back! Is there anyway to send this scroll view to the background of the view? This is all the code that concerns the scroll view @IBOutlet var

IBOutlets not showing on XCode 6.1 (6A1052d)

不问归期 提交于 2019-12-13 00:39:37
问题 This is quite a major problem: the Outlets are not appearing in IB. To reproduce: 1) I declare a variable to be IBOutlet, for example in my view controller's .h file @property (nonatomic, strong) IBOutlet UILabel* testlabel; 2) I open the storyboard, click on the viewcontroller. - If this is a new project, there is no "Outlets" list. - If this is an old project with outlets already defined, the "Outlets" list contains the previous outlets, but not the one I've added. Has anyone had the same

Spritebuilder project with wrong node positions in xcode 6

杀马特。学长 韩版系。学妹 提交于 2019-12-12 23:52:50
问题 I've been using spritebuilder to play around with a few design ideas. I recently upgraded xcode to xcode 6 and my node positions have ended up being a bit screwy. I was wondering if anyone else is having these issues. What I get on spritebuilder vs how it ends up looking like on ios simulator Deploying to an actual ios device with ios 7 works correctly. 回答1: I managed to find a solution to the problem. unchecking all deivce orientations and checking protrait in xcode resolved it. I think

Unable to boot the iOS Simulator - xcode 6.0.1

旧街凉风 提交于 2019-12-12 18:05:42
问题 I've an error in Xcode 6.0.1 on OS X Mavericks 10.9.5. When I debug, the iOS 8 simulator shows this error: Unable to boot the iOS Simulator. After few seconds Xcode shows this other error: An error was encountered while running (Domain = DTiPhoneSimulatorErrorDomain, Code = 2) However, the iOS 7 simulator works!! 回答1: Do you have DYLD_INSERT_LIBRARIES set? Check /etc/launchd.conf and look for launchd_sim crash logs in ~/Library/Logs/DiagnosticReports ... if so, this is a dupe of Unable to

iOS8 simulators error

不打扰是莪最后的温柔 提交于 2019-12-12 15:47:00
问题 Try to start my project on one iOS8 simulator and Xcode shows error: An error was encountered while running (Domain = NSMachErrorDomain, Code = 5) No one of iOS8 simulator can't be started. What to do? 回答1: "iOS Simulator" -> "Reset Content And Settings..." ^ this helps. 回答2: I ran into the same error just this morning, and I haven't completely figured it out, but I have observed something which might help you (or both of us, if anyone else stumbles across this and has more information). I

Images.xcassets breaking the laws of targets

亡梦爱人 提交于 2019-12-12 14:32:35
问题 Ok so i'm pulling my teeth out over this one and I sincerely hope i've made a stupid mistake (there have been some late nights involved). Short back story, we are building a product that needs to be brand-able as multiple customers will share 90% the same UI and code, with some config options to turn things on / off and different colours, fonts and images etc. All working fine except the .xcassets folders. I have 1 per customer, currently they have the same asset names, with different images.

Access PNMessageResult in PubNub Swift

与世无争的帅哥 提交于 2019-12-12 12:06:13
问题 See this link Based on the following function I am able to receive the response, func client(client: PubNub!, didReceiveMessage message: PNMessageResult!) { println(message) But, I am able to access the data only as message.data which is in the format of PNMessageData. Even that returns the data in following format: { message = "{}"; subscribedChannel = 123; timetoken = 14392105288780634;} How will I access the value of message inside the message.data(PNMessageData) ? 回答1: I have written

Adding Linked or Embedded Swift Framework: 'MyClass' is unavailable: cannot find Swift declaration for this class

别等时光非礼了梦想. 提交于 2019-12-12 10:39:11
问题 I have a Swift Cocoa Touch Framework project (we'll call it MySwiftFramework ) that has some nifty code in it that I'd like to reference in another project/workspace. When attempting to reference that framework, I get the following error in the code that references the swift classes of the aforementioned framework: 'MySwiftClass' is unavailable: cannot find Swift declaration for this class I've checked the auto-generated file: MySwiftFramework.framework/Headers/MySwiftFramework-Swift.h and it

Debug view hierarchy does not render UI

亡梦爱人 提交于 2019-12-12 10:38:59
问题 i'm trying to use the view hierarchy feature on xcode 6 to see the draggable layout of my app, but all i get is a blank area where it should be. after trying out lots of suggestions from SO and other places, nothing works. I have had the sim running with or without break points, different sim devices, different apps, but nothing works. I know you're just supposed to click on the button while the app is being simulated and it's supposed to pop up, but when i do it the main interface with the