Questions tagged as 'swift'

1
answer

Publish to facebook direct - iOS9

I created a code using Swift and the Facebook SDK for iOS9, I can login and share, but to make the share I need to click on the share button that sdk provides, so it opens the default Facebook share box to do the share. I need to share in a diff...
asked by 17.10.2015 / 21:40
1
answer

Colors in pictures

I own an image and would like to take the predominant color of this image. For example: I have this image: link The predominant color is green, I would like to know how to identify this color, in different images, regardless of the co...
asked by 05.02.2015 / 12:53
2
answers

How to exclude TableViewCell being a Swift Dictionary

I'm trying to delete a TableViewCell using the swipe to delete style, but I can not delete the cells. The cells are being created by a dictionary that creates each one with the key as a title and value as details. func tableView(tableVi...
asked by 02.01.2015 / 19:03
0
answers

objective c or swift? [closed]

Hello, I'm now starting to program for iOS, I'm already an android java programmer, and I wanted to know at the moment how best to develop applications for apple (iphone / tablet) and I saw that apple launched a new language, by which to start?...
asked by 15.10.2014 / 21:50
2
answers

How to access a Cocoa Touch Framework module in the Swift Playground

I created a Cocoa Touch Framework module in Xcode 6.0.1 with Class implemented in Swift and I get it imported into my View Controller and use it normally. The problem is that I can not use the same code in the Playground created in the same pr...
asked by 05.10.2014 / 17:15
3
answers

Sort a string array in Swift using a function

I need help to solve the following programming logic problem in Swift. The task is to organize the array below in descending order using a function. Description: You must implement an algorithm that receives a list of strings with specific...
asked by 04.05.2018 / 15:02
1
answer

How to improve this method that compares three numbers?

Can you help me improve this little code so it's less extensive and clean? The code compares three numbers and shows which one is the largest of them: @IBAction func comprar(_ sender: Any) { if pNumero.text! > sNumero.text! {...
asked by 03.02.2017 / 00:26
1
answer

How to create combobox in swift?

I want to create a comboBox to list all the courses that my app offers, but I did not find the corresponding component, alias I found a similar one and implemented PickerView, but I would like to reproduce the default behavior of a: <se...
asked by 30.06.2016 / 17:04
2
answers

Mask for UITextField

How do I apply mask to a UITextField ? I found some ways to apply a mask to a UITextField , but it did not seem to me to be a very correct thing to do. It could be an example of a simple phone mask. It can be in Swift or Objective-C....
asked by 12.11.2014 / 18:50
1
answer

swift with sqlite

I'm trying to create a sqlite database with swift, but I'm having difficulty with examples and documentation on the net, I wanted to see if anyone could connect to an sqlite database with swift?     
asked by 13.06.2014 / 06:47