Swift – Array of Any to Array of Strings
Question or problem in the Swift programming language: How can I cast an array initially declared as container for Any object to an array of Strings (or any other object)? Example :
Continue ReadingQuestion or problem in the Swift programming language: How can I cast an array initially declared as container for Any object to an array of Strings (or any other object)? Example :
Continue ReadingQuestion or problem in the Swift programming language: I am building an app which uploads files to the server via ajax. The problem is that users most likely sometimes won’t have the internet connection and client would like to have the ajax call scheduled to time when user have the connection back. This is possible […]
Continue ReadingQuestion or problem in the Swift programming language: I’ve been trying to change the color of the status bar in my Swift app, and I’ve identified four ways to do this in XCode. Yet, I have only been able to successfully use method 3:
Continue ReadingQuestion or problem in the Swift programming language: I was wondering if there was a proper way to cancel the swipe left on a tableview cell so that it slides back to hide the buttons. I’m not really sure how to correctly say that, lol. But please see the GIF below. In the first GIF […]
Continue ReadingQuestion or problem in the Swift programming language: I am trying to save SOME of the metadata from an image sample buffer along with the image.
Continue ReadingQuestion or problem in the Swift programming language: I’m upgrading code from Swift 2 to Swift 3 and ran across this error:
Continue ReadingQuestion or problem in the Swift programming language: Here is my custom view:
Continue ReadingQuestion or problem in the Swift programming language: In Swift 2 I used a User Defined Runtime Attribute in Storyboard with a key path of tintColor to change the tab bar item icon colors. However, it looks like tintColor was removed with Swift 3. How can I change the selected color of the tab bar […]
Continue ReadingQuestion or problem in the Swift programming language: The goal is to subclass SCNNode. According to the class docs, init(geometry geometry: SCNGeometry?) is a designated initializer (no convenience keyword listed), so isn’t this code invoking a designated initializer of its superclass?
Continue ReadingQuestion or problem in the Swift programming language: My question is fairly straightforward. I have a UIViewController containing a UICollectionView. In initialising my cells, I add a gesture recogniser to each of them so that when you tap and hold it calls a function with a selector.
Continue Reading