Search results for

xcode github

94,047 results found

Post

Replies

Boosts

Views

Activity

Multiple embed segues
Watching the What's new in Storyboards talk from WWDC2015, the example application showed a custom container view control that had multiple embed segues coming out of it. That's never been possible before, as far as I know. Unfortunately the sample code that went with that talk wasn't actually the sample application they kept showing.Is this a new feature of Xcode 7? Is it something we can do ourselves somehow?
0
0
543
Jun ’15
Reply to Image not showing on iOS8
Thank you.Well, the image welldone.png shows on the Xcode screen when I navigate to Xcode > Project navigator > Project name > Classes > Graphics > Interface Graphics > welldone.png.I set a breakpoint in KLPAViewController.m > line 209 > UIImage *backgroundImage = [UIImage imageNamed:@welldone.png]; > I'm not sure how to look for the value of the background variable?I see the Debug area at the bottom and a load of data.
Topic: Programming Languages SubTopic: General Tags:
Jun ’15
Reply to Break on throw?
Yes, it was mentioned in What’s New in LLDB. The debugger command is:br s -E swiftIt seems that it is not yet possible to enable this breakpoint in the Xcode 7 UI so you have to type it manually in the debugger when you run your program (or put it in your ~/.lldbinit).
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Reply to guard vs control-flow-aware typing?
You keep saying shadowing. Shadowing is allowed, but redefining is not. The code I showed you is redefining x, not shadowing it. If you try to shadow a local variable it works fine.One more time:Shadowing is when you define a variable in a scope when the same name is already used in the outer scope. The variable in the outer scope cannot be referred to, which is why it is called shadowing.Redefining is when you try to define a variable with a name that is already used in the same scope.If you want to have a language that creates a new scope for every line, then that is fine, but Swift is currently not that language.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
SKTextureFilteringMode
Downloaded Xcode 7 beta to try it out and discoverd when setting an SKTextures filtering mode to nearest it does not work (as in there are no visible results when running the app, I still see blurred pixels). Simple example below:let texture = SKTexture(imageNamed: image) texture.filteringMode =.Nearest let sprite = SKSpriteNode(texture: texture) addChild(sprite)Just wondered if this was a known issue with this beta or it's just happening to me?Thanks,Tom
10
0
1.3k
Jun ’15
Reply to Using NSCollectionView 10.11 features in 10.10 and 10.9
HI, David,I am trying to navigate the same waters as you. The properties and methods declared in the new header are definitely for 10_11 and up. However, I did attempt to run the CocoaSlideCollection sample code in Yosemite after building it with 10_10 as deployment target. It ran, but it failed to select JPEGs when browsing.My expectation is that we will have to run different code for NSCollectionView and maybe load different NIBs, depending on the outcome of a test for OS X version. I have a question in to Apple about that.Best regards,Tom McVay
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’15
Xcode 7 view controller in embedded framework
Hi,I create a test project:Xcode7SwiftModule is main programSection1 is an embedded frameworkHere my Main.storyboard with the FirstViewControllerThe last element it's a Storyboard Reference object define like this:In Section1 (my embedded framework) I have another storyboard Section1.storyboard with the SecondViewControllerI can build my test project, display the FirstViewController but when I click on Go to Section1ViewController the application crash with the message:2015-06-16 15:05:32.920 Xcode7SwiftModule[7494:1712281] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Section' in bundle NSBundle </...../Developer/CoreSimulator/Devices/C0FD9F5E-F49E-44A8-8464-C96560ED312C/data/Containers/Bundle/Application/480FA9F7-F979-47A8-A5F6-138A5D98855E/Xcode7SwiftModule.app> (loaded)'It's like the Storyboard Reference object ignore the path in the bundle field (?!?!?)How I can create the link between my FirstViewController in the main story
2
0
1.3k
Jun ’15
Reply to Auto generate swift protocol placeholders in implementation class
Below is an example of the Xcode feature I was thinking of.protocol SomeProto { func returnInt() -> Int func returnString() -> String func returnValueType() -> CGRect func returnADT() -> [String] func returnOptionalClass() -> NSDateFormatter? func returnClass() -> NSDateFormatter}X-Code would complain it does not conform to protocol)class SomeProtoImpl : SomeProto {}Using Xcode new Fix-it feature it would generate default(dummy) implementations as depcitedbelow of the required protocol functions making SomeProtoImpl compile and then you replacethe dummy logic with the actual logic you would like to implement.class SomeProtoImpl : SomeProto { func returnInt() -> Int { return 0 } func returnString() -> String { return } func returnValueType() -> CGRect {return CGRectZero} func returnADT() -> [String] { return []} func returnOptionalClass() -> NSDateFormatter? { return nil} func returnClass() -> NSDateFormatter { return NSDateFormatter() }}
Jun ’15
Reply to .m and .h files not being added to target
If you are using the El Capitan seed, be aware that application-specific options that are added to the save sheet are now collapsed by default. There is an Options button in the bottom left of the save sheet that will disclose them. Xcode puts target membership choices and group coices in those options when creating new files.
Jun ’15
"Unable to install" on devices that have never been touched by XCode
Hello everyone,I'm having this strange issue. You see, we uploaded a new version of our application to itunes connect, and we sent it to the internal testers. However, only those where we installed some version of the application directly through XCode at some point are the ones who can install it via testflight.Our devices where the app has never been directly installed through XCode cannot install the application right now through testflight (the download gets to around 98% and the says that it was unable to install, even if they had downloaded a previous version of the application through Testflight successfully at some point).So, I'm assuming, maybe there's something in the XCode settings? It seems like something quite specific.
0
0
199
Jun ’15