Questions tagged as 'swift'

1
answer

Change buton's Label when clicking and picking the typed value

Good afternoon, I have a button in my application that the value will change as the button is selected, it should open a field for the user to type and consequently he will get the value typed and change the label. import UIKit class ViewCont...
asked by 27.07.2017 / 20:33
1
answer

how to make a filter on an array in Swift similar to like?

let cast = ["Vivien", "Marlon", "Kim", "Karl"] would like to return like ('% ar%') "expected result [" Marlon "," Karl "]"     
asked by 25.07.2017 / 04:52
1
answer

iOS - Change the height of a Text Field within UIStackView

I have a layout that I built using StackView . So I have a StackView vertical with some TextField , and two StackView horizontal inside. I want now to change the height of textfields, which the inspector will not let me...
asked by 21.06.2017 / 21:04
2
answers

Swift 3 - How to make an alert appear after the screen loads?

Hello, I'm building an app that requires an alert to appear as soon as the user accesses the screen. For this I did a ViewController and linked the view that is being accessed class EducacaoController : UIViewController { override fun...
asked by 09.06.2017 / 16:32
1
answer

Problem with changing screens with Navigation Controller

I'm having a little problem, my App uses the Navigation Controller and a View Controller, I have declared strings that bridge the cells. When you run the app it starts in the Navigation Controller and when I click on the items on the cell it...
asked by 24.06.2017 / 14:20
0
answers

How to capture photo and video by the same AVCaptureSession?

Hello I'm trying to create an app like Snapchat. From the same button, I intend to allow the user to take a photo (TouchUpInside) and record a video (long press). I'm using AVFoundation for this. The problem I have encountered is that I ca...
asked by 11.06.2017 / 23:00
1
answer

Database created with Core Data in Swift

I need to create an app that is a form with basic data (name, age, email, etc) and save the data for access later, but save it in the tableView, create the database file or worksheet. I saw that CoreData and Realm generated a DB file. Can you...
asked by 22.05.2017 / 17:44
1
answer

How to use SafariViewController on all App URLs

I have an App that initially presents with a TableViewController where each cell leads to a ViewController simple. However, each ViewController displays many URLs that are automatically recognized within TextViews and it would...
asked by 25.05.2017 / 00:32
1
answer

Swift error - can not invoke initializer for type int with an argument list of type ()?

I'm doing a swift 2 course plus the version I'm using is 3, so I'm researching the codes when I have some error to do the fix, plus some I have not found. Thank you if anyone can help error: can not invoke initializer for type int with an...
asked by 15.05.2017 / 19:10
4
answers

swift 3 - How to persist objects

I'm an Android developer and I'm trying to learn some things for iOS as well. I have knocked myself a little on simple things, like saving persisting an object of mine to catch it again another time. On Android I would use a SharedPreference...
asked by 19.06.2017 / 20:36