Questions tagged as 'swift'

1
answer

Swift: change place button according to keyboard appearance

I'm making an application in Xcode and would like the button at the bottom of the screen to move according to the keyboard's appearance. Thank you     
asked by 29.01.2018 / 16:55
2
answers

Use or not MainStoryBoard Swift

I started my studies in Swift , I am currently studying Swift 4 , but I came across a doubt, which I believe many people who are starting also have (or not). In the course I'm seeing, the teacher teaches us how to develop apps...
asked by 02.10.2017 / 14:57
1
answer

Share iOS texts

How do I share text on social networks in an iOS App in Swift 3? I have several random phrases in an array and if the person likes any I would like to let the same share such a phrase. How would the one-button code to open options between sharin...
asked by 22.09.2017 / 14:21
1
answer

Setting height for UIScrollView

I'm creating an application for iOS using Swift , I'm having a lot of difficulty regarding height of UIScrollView , I'm using auto-layout and I create the following structure: UIScrollView UIView // View where I...
asked by 07.07.2017 / 03:22
1
answer

IOS navigation bar button image

I need to add two buttons in the navigation bar of my app, but what I need to use an external image (already imported to the project) does not appear. override func viewDidLoad() { super.viewDidLoad() //Esse botão aparece...
asked by 06.10.2017 / 12:54
2
answers

Load items from a plist

I'm having trouble loading the items on a property list. Note my plist: Here'smyfirstViewController:importUIKitclassPage1:UITableViewController{varfilePath:String?varemployees:[[String:Any]]=[]overridefuncviewDidLoad(){super.viewDidLoad()self.t...
asked by 26.03.2017 / 04:12
1
answer

Command to comment several lines in Xcode?

Hello Is there any shortcut to commenting on multiple lines in Xcode? I mean, I use /*...*/ today, but I have to go to the beginning of the block to mark the beginning and do the same until the end.     
asked by 24.03.2017 / 14:32
1
answer

Differences between tableView.dequeueReusableCell and UITableViewCell

Good evening, I would like to know what is the difference between the parameters below, if one is more effective than the other, less chance of error etc. What I see in practice both do the same thing. Thanks in advance. 1) override func...
asked by 08.04.2017 / 00:42
2
answers

Swift How to display variables

I am finishing a small project to learn Swift but there is a small problem in putting more variables in output . @IBOutlet weak var Nome: UITextField! @IBAction func CalcularIMC(_ sender: AnyObject) { imc = ((p * 200) / (a * a)) * 100 /...
asked by 21.12.2016 / 16:07
1
answer

Insert uilabel or uibutton into an image

I would like to know if there is a way to create a link in a text using label or button inside an image. To insert text in an image simply insert: campotexto.draw and to insert label or button someone knows if there is any way ? Thank you in adv...
asked by 04.02.2017 / 22:57