|
Doctor w-rw-rw- posted:Anyone else able to reproduce? Yep, crashed mine right away
|
# ¿ Jun 3, 2014 21:56 |
|
|
# ¿ May 2, 2024 14:12 |
|
I'm a bit confused with the Swift closure syntax myself. For example, when Xcode autocompletes ReactiveCocoa's RACSignal.createSignal it generates: code:
code:
code:
|
# ¿ Jun 5, 2014 20:37 |
|
I think I've run into a Swift issue but I'm not sure if it is just me missing something. This works: code:
Type 'DictionaryIndex<String, AnyObject>' does not conform to protocol 'StringLiteralConvertible' code:
|
# ¿ Jul 16, 2014 19:04 |
|
Did += for Array just die with the new beta?
|
# ¿ Aug 4, 2014 22:29 |
|
Is this a Swift issue or something I'm doing wrong?code:
code:
|
# ¿ Sep 19, 2014 20:09 |
|
rjmccall posted:This seems like an SDK issue. When Swift imports an ObjC class, it gets all the initializers declared anywhere in its class hierarchy. This is the right default, because it's quite common for ObjC classes to inherit initializer signatures from their superclasses without explicitly redeclaring them in their @interfaces. In some cases, however, this is problematic, because the class's invariants require it to be initialized in a certain, subclass-specific way. That's what's happening here, and the right fix is probably for NSError to redeclare -init and mark it unavailable. OK, good to know - thanks!
|
# ¿ Sep 19, 2014 23:59 |
|
fleshweasel posted:More JSON difficulty here. I have a JSON object that I successfully converted to Array<Dictionary<String, AnyObject>>. When I say something like: It looks to me like json is an array there? Do you mean json[0]["key"]?
|
# ¿ Sep 23, 2014 05:19 |
|
fleshweasel posted:I'm having difficulty getting this extension method working. I think the extension doesn't know that self is an Array<T>, so maybe: code:
Glimm fucked around with this message at 14:34 on Sep 29, 2014 |
# ¿ Sep 29, 2014 03:25 |
|
dukerson posted:So not sure if this is the best place for this, but I haven't been able to find any answers elsewhere: Might be related to this: https://twitter.com/rustyshelf/status/518205886703996928 Looks like apps recently submitted that use frameworks are crashing on launch.
|
# ¿ Oct 4, 2014 08:01 |
|
playground tough posted:If I work with swift, am I going to have an easier time building my app coming from a java & c background than with this react bullshit? Thanks. In my opinion, yes. React Native is cool but has kind of a steep learning curve if you're not already familiar with JavaScript / web tools / React itself.
|
# ¿ Feb 21, 2016 06:03 |
|
status posted:So I just got this neat new job that I start in a couple of weeks. The company just recently (late last year-ish?) started doing everything Swift. That's great, but I don't know Swift at all. I tried watching those Stanford lectures but they were the most boring loving thing ever. I've been a full time iOS developer for a bunch of years, so I don't need to learn what Autolayout is or how to use a tableview. I just need to learn some Swifty stuff. What's the hot poo poo as far as books go? The OP is pretty empty. Have you looked at the books Apple provides on iBooks? https://itunes.apple.com/us/book/swift-programming-language/id881256329?mt=11 https://itunes.apple.com/us/book/using-swift-cocoa-objective/id888894773?mt=11 They're very informative. They aren't super jazzed up or anything though, I don't know how boring you might find them.
|
# ¿ Apr 29, 2016 02:25 |
|
|
# ¿ May 2, 2024 14:12 |
|
Should I be able to replace Cocoapods/Carthage with Swift Package Manager once Xcode 9 is released? I haven't looked into SPM in awhile, last I remember it didn't work with iOS at all and maybe not with Objective-C laden libraries.
|
# ¿ Jun 14, 2017 22:08 |