Most voted "swift" questions
Swift is a multi-paradigm programming language for Apple’s iOS and macOS operating systems. It was created by Chris Lattner in 2010 and released on Apple’s WWDC on 06/02/2014. It is currently in version 5.
Learn more…491 questions
Sort by count of
-
0
votes0
answers41
viewsError fbauth2 IOS 9, how to fix?
I try to compile even with the auth2 already added and the error continues, does anyone have any idea what is? Terminating app due to uncaught Exception 'Invalidoperationexception', Report: 'fbauth2…
-
0
votes1
answer65
viewserror Swift 0_pthread_kill
Good afternoon friends. I am trying to make a COREDATA SELECT because I am having the following error: 2016-01-29 13:08:39.648 epicGames[2049:1579473] * Terminating app due to uncaught Exception…
swiftasked 8 years, 10 months ago Bruno Bafilli 327 -
0
votes1
answer146
viewsHow to call a web service in swift2 Xcode 7
I’ve tried 1000 and 1 thing and still can’t find a way to call my web service and get the desired results. Can anyone tell me the best way to connect to my web-service and call my methods in swift2…
-
0
votes0
answers55
viewsVertical slider - adapt size
I need some sliders placed via storyboard to adapt to the screen size when placed upright. For example I put three sliders on the screen and put your contraints so that they have the same width and…
-
0
votes1
answer187
viewsNavigation bar some no Xcode com Swift
I am making an application in Swift in Xcode 7.2.1, I am using navigation controller in this application. I created the tabs using push, until then the navigation bars were appearing at the top. But…
-
0
votes1
answer98
views -
0
votes0
answers129
viewsInstallation of Swift on Ubuntu 14.04 LTS
I’m having trouble installing. Following a tutorial, I did all the procedures but when I type to compile the command ./swift it displays an error that is in the image. Thank you in advance.…
-
0
votes0
answers54
viewsHow to insert comment on facebook by iOS Swift app? It’s not sharing on my own Timeline
I’m trying to insert a comment on a facebook page with my app, but I couldn’t find function for it in Swift for iOS. Note: It is not writing/posting on my Internet.
-
0
votes0
answers72
viewsPick new coordinates whenever the user moves the marker
The application is already picking up the correct user location, but I wanted if the user moved the marker to another street, the application to pick up this new coordinate. Follow the code below…
-
0
votes0
answers37
viewsCocoapods error in such file or directory: 'Opengles'
I want to add the Googlemaps library to my project. So I installed cocoapds and followed all the steps that are on the google site siteGoogle. I’ve wandered around forums and tried several of the…
-
0
votes1
answer137
viewsIos Swift Tableview cleaned when returning the screen
I’m implementing two screens... at first I have a tableview to click on one of the cells, sending data to the second screen... However when I click on the back button that is a follow to the first…
-
0
votes0
answers60
viewsHow to fix Bool Return error with Parse?
When I compile the code parse asks to put in appdelegate.Swift appears "Return in Function to Return Bool" but when I enter Return true, there are more than 30 errors and still not working, follow…
-
0
votes1
answer348
views"OK" button in warning message -
Can someone help me What is the correct way in Swift 2? asks to remove "Let okAction", but then I lose the reference and the alert is no button. Let okAction = Uialertaction(title: "OK", style:…
-
0
votes1
answer85
viewsLabel moving as digital signage
Hello, I would like to know how I do in Swift a phrase keep passing from right to left and when every sentence pass she keep doing the same procedure forever, like a digital sign.
-
0
votes0
answers46
viewsApplication Crashing at runtime
I created three apps on Swift, they were working normally, but from a while they stopped and I can’t identify the error. I’ve done a lot of research and I can’t seem to figure it out. They work in…
swiftasked 8 years, 8 months ago Cristiano Wisniewski 1 -
0
votes1
answer127
viewsDisplay alert if not connected to the internet
How do I display an alert for the user if they are not connected to the internet?
-
0
votes2
answers70
viewsPicker View - Display an Imageview according to the sum of values
Hello. I’m trying to work with Picker View to display a combination of values. var pickerDataSource = [["a", "b", "c", "d"],["1","2","3","4"]]; Doubt is; how are results within a condition? if(row…
-
0
votes0
answers96
viewsTableview in Uiview in Swift 2.0
I’m trying to create a table within a view. So that when the user is in view1 and presses a button open a smaller view2 inside view1 and choose one of the table data and loading transports the…
-
0
votes1
answer47
viewsPut a line on a Uitabbaritem?
How to place a line at the bottom of a Uitabbarbutton as it occurs in this image: However this line should only appear on the selected button.…
-
0
votes1
answer86
viewsSwift - How do I take an image from the internet and send it to an Imageview?
I have an Imageview, I want to take an image of the internet (through a link) and play for Imageview on the screen. Image example to be captured:…
swiftasked 8 years, 6 months ago CristianCotrena 1,145 -
0
votes2
answers514
viewsHow to pass the value of a variable through a button to another class in Swift
I have a login screen, with the e-mail and password fields. I need to use in another viewController the email that was used to log in to the system. But I cannot pass the e-mail typed in…
-
0
votes1
answer72
viewsReloaddata in Tableview loading wrong image Swift 2.0
I have a tableview inside my Viewcontroller, and do some actions on each cell like expand and delete. When I do the deletion I give a Reload in the table loading the data of a remote json, it…
-
0
votes1
answer37
viewsSwift - Navigationbar problem with Searchcontroller
I’m having a problem with the NavigationBar when used together with the SearchController. If the NavigationBar translucent property is set to false NavigationBar exits the screen when the…
-
0
votes2
answers159
viewsGlobal constant Swift 2
Ola would like to know how to create a global settings file. I’m wearing a Lib for http, Alamofire query. I’d like anywhere in any file I called the constant to be accessed. Example:…
swiftasked 8 years, 7 months ago Jefferson Fernandes 3 -
0
votes1
answer326
viewsImport a Pod function - Cocoapods Swift
I’m starting now with Swift (Xcode 7), I did the installation of cocoapods, but wanted to know how to import the functions that exist in the pod to a new project.
-
0
votes1
answer186
viewsHow to check if the user is connected to the internet(wifi and mobile data)- Swift
I am using the following code to check if the user is connected to the internet: if Reachability.isConnectedToNetwork() == true { } else { let alert = UIAlertView(title: "Sem ligação à Internet",…
-
0
votes1
answer136
viewsPass array from one Uitableview to another Uitableview
Talk guys! I’m having a hard time getting the value of a array in a uitableview and move on uitableview. No error appears, but do not print anything on the console when accessing the next…
-
0
votes1
answer83
viewsSwift - How to make and run an Assynctask?
I made an app on Android and am making a version of it for IOS currently, I would like to know how I could implement an Assynctask on Swift and run. On Android I did this way: public void…
-
0
votes1
answer29
viewsOverride returns secondary Viewcontroller error in Swift2
I’m getting this message below while trying to make a Swipe on a cell of a Tableview. Remembering that I am doing this in a viewcontroller file and not in a tableViewController. It is possible?…
-
0
votes1
answer37
viewsComplete Range Script on Swift 3.0
I was normally using this code in a Swift 2.0 project, then decided to upgrade the project to version 3.0 and adapt some functions that changed... Only the last "squeak" argument I can’t adapt. Code…
-
0
votes2
answers56
viewsHow to call a viewcontrolller Runtime
Friends I just need to open a Viewcontroller , and I’m jerking off, could help. Who can help .... Thank you. . LoginViewController *tela2 = [self.storyboard…
-
0
votes1
answer90
viewsSwift - Activity index on Table view
I’m trying to implement a Activity Indicator about a Table View but it’s not working properly. It appears underneath the Table Cells Here is my code and the image of how the indicator appears.…
-
0
votes2
answers143
viewsWhy is the result of this code going to be 30?
Why is the result of this code going to be 30? I’m a beginner in Swift, but I have a notion of Programming Logic.…
-
0
votes1
answer66
viewsSwift - Indicator Activity not showing
I have a code to show you activity indicator on Swift, but is not working properly. The activity indicator does not appear, even after all the code within the func de configuração is loaded…
-
0
votes3
answers1761
viewsHow to convert a String to Date on Swift
i receive the date as follows 2016-08-14T20:38:27.031-03:00 as string, I would like to pass to date on the standard dd/MM/yyyy, I have already searched the net some solutions however were not useful…
-
0
votes1
answer77
viewsI can’t change the rootViewController
Hello, take it easy on me 'cause I’m a complete beginner. I’m trying to change the root of an application I’m trying to do. It even worked when I mentioned window!.rootViewController =…
-
0
votes1
answer109
viewsProblem trying to update object instance with Realm
I made a request in the local database and received an array with the data. Then I run the array with looping for, looking for an object with a specific id, when locating the object I try to update…
-
0
votes2
answers340
viewsSwift - how to find out the size of JSON?
I’m getting a Json from a link. How do I find its size and how do I assign the "image" key to a String array - var img = [String]()? example JSON: [{"imagem":"textoX","link":"link da webX"},…
-
0
votes1
answer157
viewsChange APP icon in IOS Runtime
You can change the app icon at runtime. Because I have an APP that will be used by several customers, I would like to change the name of the APP and the icon when the customer logs in. I’m currently…
-
0
votes2
answers81
viewsSwift: Fixed header on a Tableviewcontroller
My problem is this: my application has a screen that uses the Uitableviewcontroller layout. I created a header (View) for this screen, however, the header does not get fixed at the top of the…
-
0
votes1
answer122
viewsPopover menu IOS Swift
I’m trying to make a menu PopOver similar to that of the WhatsApp but without success. I wanted to make a menu similar to the one below. The only menu PopOver what I can do is with the white…
-
0
votes1
answer26
viewsUiresponder Signal
Good afternoon, I made a small app with Swift 2.3 Xcode 7.3.1. with the upgrade of Swift 3 and Xcode 8 started to show the error below. some help please.…
-
0
votes1
answer115
viewsDownload file on IOS - Swift
People I am a short time programming for IOS using the language SWIFT. I need to download a file from the web, I’m using Nsurlsessionconfiguration, but this object only works for IOS 8+. And I want…
-
0
votes1
answer100
viewsSwift - Move Uitextfield up when it is inside a Uitableviewcell
Hello! I’m trying to move up a UITextField when he’s inside a UITableViewCell and the keyboard appears, but I don’t have a TableViewController. To UITableView is inside a ViewControllerregular. The…
-
0
votes1
answer565
viewsHow to add image to Launchscreen.storyboard
It’s been a long time since I’ve been trying to add an image to Launchscreen.storyboard of an iOS app I’m developing. Text I can add and view while uploading the app, but I can’t see an image I…
-
0
votes1
answer60
viewsHow to convert Nsdata to URL
Friends I have an image recorded on Sqlite, read the image and put in a Nsdata variable Now I need to play this Nsdata but the component expects a URL NSURL *urlVideoFile = [NSURL…
-
0
votes1
answer273
viewsDelete a Tableview + Coredata line
I am creating an application with tables and persistence with CoreData, but when I ask to erase a line the same does not disappear completely from the screen, leaving the symbol...disappearing only…
-
0
votes1
answer41
viewsCreate a structure from an xml
I am using the Swxmlhash Framework to read XML and need to create somehow the following structure from XML Structure to be created: Catalogo Book1 Autor = Gambardella Genre = Computer Book1 Book2…
-
0
votes2
answers333
viewsHow to insert link on button
Good, how do I insert a link in a tried button below and it didn’t work. @IBAction func urlDisplay(_ sender: AnyObject) {…
-
0
votes1
answer120
viewsReal-time validation of a textField
I have an application in Swift 1 for ipad, would like to remove or not accept the entry of "." in my textField. It is like Numberpad. I found some solutions here but none at Swift.