Top "Swift" questions

Swift is a safe, fast, and expressive general-purpose programming language developed by Apple Inc first released in 2014.

How to change Status Bar text color in iOS

My application has a dark background, but in iOS 7 the status bar became transparent. So I can't see anything there, …

ios swift ios7 statusbar uistatusbar
How to install CocoaPods?

I referred too many links and tried, but had no success. If any one has an idea then please please …

ios swift xcode rubygems cocoapods
Convert Int to String in Swift

I'm trying to work out how to cast an Int into a String in Swift. I figure out a workaround, …

string casting int converter swift
Split a String into an array in Swift?

Say I have a string here: var fullName: String = "First Last" I want to split the string base on white …

arrays swift string split
How would I create a UIAlertView in Swift?

I have been working to create a UIAlertView in Swift, but for some reason I can't get the statement right …

ios swift cocoa-touch uialertview uialertcontroller
Loading/Downloading image from URL on Swift

I'd like to load an image from a URL in my application, so I first tried with Objective-C and it …

ios swift uiimage nsurl
Converting String to Int with Swift

The application basically calculates acceleration by inputting Initial and final velocity and time and then use a formula to calculate …

ios swift int uitextfield
How to find index of list item in Swift?

I am trying to find an item index by searching a list. Does anybody know how to do that? I …

arrays swift
How to iterate a loop with index and element in Swift

Is there a function that I can use to iterate over an array and have both index and element, like …

arrays swift enumeration
Get the length of a String

How do you get the length of a String? For example, I have a variable defined like: var test1: String = "…

swift string