itgo.me

  • swift2 - Swift 1.2 -> Swift 2 Conversion time

    up vote 2 down vote favorite Has anyone converted an app from 1.2 to Swift 2? My app is small - about 1k LOC, and its been converting for >2 hours now. I'm stuck on the following screen: How long shou

  • swift2 - Subclassing ViewController Swift

    up vote -1 down vote favorite Sorry if the question has been ask before.. I have looked without finding it. I am building an IOS application with Swift2. I have a very long main class (ViewController:

  • swift2 - Sigabrt in Swift 2

    up vote -1 down vote favorite I'm basically a few inches away from my first step on creating my app, but it shows an error 'sigabrt' This also is on Swift 2, so I really don't know if sigabrt(s) on sw

  • swift2 - Swift Protocol Implements Equatable

    up vote 27 down vote favorite 9 I have the the below Protocol: protocol Cacheable { //....// func identifier() -> String } Can I make Cacheable implements Equatable ? when I do the following:

  • swift2 - Swift 2.1 Closure

    up vote 0 down vote favorite At first, I apologize for my English! Please help me detect when I was wrong. let arrayInt = [0, 1, 2, 3, 4, 5, 7, 8, 9] func myF(array: [Int], cl:(n1: Int, n2: Int) -> B

  • swift2 - PromiseKit Syntax Chain swift

    up vote 1 down vote favorite I'm trying to chain some promise on promise kit, I have syntax problem when the promise type is like this Promise<Location>, only when the promise has a type I get compile

  • swift2.2 - swift 2.2 #selector on var

    up vote 0 down vote favorite I use Typhoon and I need selector for injection property definition.injectProperty(Selector("viewModel"), with: self.viewModel.inviteViewModel()) but compiler don't see s

  • swift2 - Swift - Clear TableView

    up vote 2 down vote favorite 1 I have a search which downloads a JSON file and displays the results in a TableView. If the user searches for something and gets a list of results, then searches for som

  • ios - Swift pods in Swift project

    up vote 3 down vote favorite 1 I need import Swift pod to my Swift project and I faced to a problem. For example, I have the Swift framework, and I created the next podfile: platform :ios, '8.0' use_f

  • swift2 - Return a value in Swift

    up vote -1 down vote favorite This question already has an answer here: Returning data from async call in Swift function 3 answers I want to call a function within another class . But they do not retu