Why am I getting a tableView definition conflict?

Swift
I am taking an iOS programming class through udemy and am trying to build use the UITableViewDelegate functions to define and populate a table. I am...
3 years ago

Swift: Add images to ScrollView

Swift
Currently I have colors for the buttons in my ScrollView, but I'd like the buttons to have images instead of them just being colored. So, I'd like to ...
3 years ago

Xcode7 and array.filter method misunderstanding

Swift
Hello there i am using the latest Xcode 7 beta 6 and appears to be a problem with the filter method of an array. in the following example i am tryin...
3 years ago

UITapGestureRecognizer is not opening url

Swift
I have created an action when tapping an image to open an URL in navigator but when I tap on it, nothing opens up. This is my code: @IBAction func An...
3 years ago

Converting NSJSONSerialization from Swift to Objc C

Swift
I am trying to convert a swift code to Objective C , since swift handles error by itself, I am little confuse about converting here, this is swift cod...
3 years ago

Creating an Array of objects from the Facebook SDK in Swift

Swift
Im new to Swift and IOS programming in general so maybe im just google ing the wrong things I have the Facebook SDK working and returning the albums....
3 years ago

what does `@objc(ViewController) ` do?

Swift
I have this swift code: func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool...
3 years ago

Getting "use of undeclared type 'NoError'" with ReactiveCocoa

Swift
I am trying to learn ReactiveCocoa and have a hard time getting started. I keep hitting minor bumps as API and tutorials seems to be outdated quickly....
3 years ago

Swift - Array of AVplayers?

Swift
I am putting together an app that plays drum beats based on hard-coded arrays as such: var beatArray = [[String]]() var beat01 = [["kick"], ["snare"...
3 years ago

Alamofire can't get response closure to execute

Swift
Mac OS X 10.11.3 El-Capitan, XCode 7.2.1, Alamofire 3.5.1 via Carthage Trying to get the most basic Alamofire example I can think of to work. Althoug...
3 years ago

URL doest not appear in correct index of UITableview after parsing

Swift
while parsing collection of dictionary array json thats look like below { "responsecode": "200", "responsemsg": "Product List", "total_pages_count": ...
3 years ago

Join results of for into one string

Swift
I have places stored in core data in an entity called "Places" that has an attribute called "name". My current for loop to return each name works well...
3 years ago

Check difference between stored file and file accessed by URL

Swift
I'm new to Swift programming, and trying to sort out in my head (and my code) the best practice for the following situation: My app accesses data fr...
3 years ago

Decode a string in Swift

Swift
How can i decode a string in swift? The string is now test%2Enl, but the correct format is test.nl. I now have this: let encodedData = encodedStrin...
3 years ago

Application tried to present a nil modal view controller on target when sending text

Swift
I'm trying to sent a text message and have controller set up like so, but I get an error message 'NSInvalidArgumentException', reason: 'Application tr...
3 years ago

Parsing CSV file in Swift

Swift
I need to preload data into my tableView when the app launches. So i am using core data by parsing a .csv file. I am following this tutorial for this ...
3 years ago

perform segue with the same button to two different viewControllers based on information in uitextfield

Swift
I am trying to make my view controller segue to two different view controllers with the same button. But i want the segue's to be done based on inform...
3 years ago

Is there a way to get line number and function name in Swift language?

Swift
In Objective-C, we could use the __LINE__ and __PRETTY_FUNCTION__ macros. These are not exposed in the Swift language. Is there another way to get s...
3 years ago

Filtering NSDictionary with empty strings in Swift and iOS Support >= 8.0

Swift
I have a Dictionary that contains values in such a way that some values are empty string. let fbPostDic: [String: AnyObject] = [ "title":"", ...
3 years ago

Not perfoming an action when there's no data

Swift
I have an action opening an URL when tapping a button, I was wondering how can I program it so that when Facebook = "0", an UIAlertController appears....
3 years ago