Report
Question
In Swift, how can I check if an element exists in an array? Xcode does not have any suggestions for contain, include, or has, and a quick search through the book turned up nothing. Any idea how to check for ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
12 Answer 21 views

Report
Question
I have an app where the user can choose an image either from the built-in app images or from the iphone photo library. I use an object Occasion that has an NSString property to save the imagePath. Now in the ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
5 Answer 15 views

Report
Question
I’m trying to work out how to cast an Int into a String in Swift. I figure out a workaround, using NSNumber but I’d love to figure out how to do it all in Swift. let x : Int = 45 let xNSNumber ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
16 Answer 11 views

Report
Question
I wanted to use a custom background for my UITextFields. This works fine except for the fact that I have to use UITextBorderStyleNone to make it look pretty. This forces the text to stick to the left without any padding. Can ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
30 Answer 7 views

Report
Question
Say I have a string here: var fullName: String = "First Last" I want to split the string base on white space and assign the values to their respective variables var fullNameArr = // something like: fullName.explode(" ") var firstName: String = fullNameArr[0] var ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
18 Answer 6 views

Report
Question
Why would you create a “Implicitly Unwrapped Optional” vs creating just a regular variable or constant. If you know that it can be successfully unwrapped then why create an optional in the first place? For example, why is this: let ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
8 Answer 6 views