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
-
1
votes1
answer1043
viewsHow do I use Vmasktextfield with Swift?
How do I use Vmasktextfield with Swift? self.comVM.Mask = "###(##)##"
swiftasked 10 years ago Luis Ricardo BRonzato Junior 11 -
1
votes1
answer63
viewsRestrict iOS versions
Is there any way I can restrict iOS versions? Detail: Not the minimum version For example, I developed an app and would like it to run on iOS 7.x. x and iOS 8.1.x. In short, I would like to prevent…
-
1
votes1
answer148
viewsMinus In App Purchase (IAP) Swift Ad
I’m trying to use In App Purchase to remove ads from my app, but the ads are located in a different view than where the IAP code is. I think I’m removing in an inefficient or wrong way, because the…
-
1
votes0
answers38
viewsPick selected item from a Nsmenu on Swift
I am using Ampathpopupbutton to save a text file, but the problem is that I cannot get the folder selected by the user. The code is like this: import Cocoa; class SaveFile: NSViewController {…
swiftasked 9 years, 10 months ago Pedro Soares 1,136 -
1
votes1
answer245
viewsHow to show Facebook friends list on Ios with Swift
I would like to know how I show a list with my facebook friends using the facebook SDK for IOS and with Swift. I’ve already done the installation and I’m already logging in on facebook. I’m just not…
-
1
votes1
answer158
viewsHow to perform file configuration for many Targets?
How can I configure Xcode to perform the following task: Use 1 Target as a template for other targets, and that some file/class when included or changed in this template can be referenced in other…
-
1
votes1
answer61
viewsNsobjectinaccessibleexception - Deleting all objects from an Entity - Nsfetchedresultscontroller
I have a function responsible for deleting all items of an entity: func removeItens() { if let managedContext = managedObjectContext { let fetchRequest = NSFetchRequest() let entity =…
-
1
votes1
answer143
viewsIs it possible to run a Switch when the App is not running?
The App would have to communicate to the user, that there was change of a value in the server, but without use of Push Notification. So I thought I’d add a Logger to iOS, and that by detecting the…
ios swift listener background-services local-notificationasked 9 years, 8 months ago Tiago Amaral 1,520 -
1
votes1
answer313
viewsAutomatic cell size in Swift
Hello, I have a project that has a tableview with custom cells, up to Swift 1.1 the method tableView.rowHeight = UITableViewAutomaticDimension in the viewDidLoad and the number of lines in 0, were…
-
1
votes1
answer71
viewsInterstitial Iad - Close button
I’m trying to include a fullscreen Iad in an app, but the advertising screen is appearing without the close button, the doubt is whether I have to do it by hand or has some hidden option for it? I…
-
1
votes2
answers288
viewsPOST request on Swift does not work
Good morning, I searched for several sites a way to make a POST request to a server, found several forms and tested them all, but none worked. I can receive page data and even send GET variables to…
-
1
votes1
answer49
viewsSwift error in passing parameters
func imageUploadRequest(param:[String: String] ,myImageView: UIImage) I need to call the function imageUploadRequest passing 2 parameters, the first being a string array and the second an image. How…
swiftasked 9 years, 7 months ago Rafael Silva 11 -
1
votes1
answer64
viewsDelete Xcode Pop Ups
Hello, I have an app already made and asked me to update it.... the problem is I was asked to remove the pop-ups from the app and I can’t find anything to remove... Anyone can help?
-
1
votes0
answers41
viewsUitableviewdelegate methods are not called with Swrevealviewcontroller
I have a UITableView representing a menu using the framework SWRevealViewController. Methods that require user interaction are not working properly. For example: the method didSelectRowAtIndex…
-
1
votes1
answer267
views -
1
votes2
answers239
viewsHow do I see a view inside the Viewcontroller after pressing a button?
I’m starting to program in Swift and would like to know how do I hide and show a view which is inserted in ViewController after pressing a button. In the app, the user will pass some data and click…
-
1
votes2
answers219
viewsSending data from one tableView to another
I would like to pass values from one tableView to another. I took a value through indexPath.Row, I would like to send the value to another tableView so that it can make a switch to appear different…
-
1
votes1
answer33
viewsUpdate Annotations
I need to update the map’s Annotations after inserting values into Coredata. i have the first view with the map, and a second where I add the new values for new Annotations, but only when I first…
-
1
votes1
answer53
viewsHow to work with Uilongpressgesturerecognizer on Swift using tables?
I need that when the user presses the table cell an alert with information appears. Follows code import UIKit class MyTableViewController: UITableViewController { override func viewDidLoad() {…
-
1
votes5
answers2115
viewsHow to make the keyboard disappear when click out of it? Swift
I have a normal Textfield, but I’d like to know how to make the textField keyboard disappear when I click off it. I know how to make it disappear by clicking on Return using the delegate…
-
1
votes1
answer166
viewsTextview IOS Swift - Balloon-shaped design
Hello guys, I would like to know how I do a textView of this in Ios with Swift ? Thanks in advance for your attention.…
-
1
votes1
answer45
viewsLoad array with Parse data
I have a cache problem in my application, because when I enter a post it searches all comments related to it and populates the array, however, when I leave the same and enter another, the array has…
-
1
votes1
answer58
viewsHow to use didSelectRowAtIndex?
I would like to know how to use didSelectRowAtIndex, more specifically I would like to know how each Row of my UITableView calls a ViewController specifies. In my code below, in case would like each…
-
1
votes1
answer356
viewsNo Xcode components in the simulator?
I have a problem with xCode in the Swift. Suddenly you don’t want to appear in the simulator new components that I include in viewController. For example: If I put a simple button on screen, when…
-
1
votes2
answers204
viewsSwift - Add button show password
I have a text field, I have already been able to include an image on the right side, by clicking this I would like to reveal the password, however, I am not able to reach this result. The current…
-
1
votes1
answer316
viewsRemove Core Data from an Xcode project
I started an app development using Core Data in the course of the development of the project I have been observing that the Core Data is not the best for the app. Within this scenario, I would like…
-
1
votes1
answer48
viewsKnow which button invoked the action
I have the following problem, I have a pickView that will be equal for two actions, however these actions have to perform parameter passage , or need to know which button invoked the action. Would…
-
1
votes1
answer53
viewsImage with zoom option or image-based map view
I’m developing an application where I need to insert a map of an internal location (so apple’s map view has not registered ) I wonder if it has how to mount a mapView (mounting the internal location…
-
1
votes0
answers43
viewsAccess array variable
I have the following problem, has an array that is my Picker, and I have a function that knows the position of my Picker, so I would like to compare to know which text is at that position , that is…
-
1
votes1
answer103
viewsLayout with 100% width and/or 10% height
How can I apply in my application to leave the width and/or height at 100% for iphone and ipad? have in my navbar application. textview, webview... thank you
-
1
votes1
answer124
viewsCustom components
Is there any way to create custom components/screens with some components already loaded? For example, create a UIViewController customized, with some standard elements in it. But in a way that can…
-
1
votes1
answer76
viewsTextview with dynamic height
I wonder how I do to leave mine UITextView with the dynamic height, something like the Whatsapp. I need as the text is typed the same increase alone. Thanks in advance for your attention.…
-
1
votes1
answer129
viewsSwift - Parse in HTML
Currently I have a project for IOS 9 where I have a Uiwebview component, I am recovering a web page and presenting within this component. But my goal is to take only the first form that is presented…
-
1
votes1
answer411
viewsCheck Internet access
How can I check in my app (swift) if the user has access to internet?
-
1
votes2
answers690
viewsHow to pass variables as a parameter in a JSON object on Swift?
I’m making a call POST with Swift using the Alamofire library. The service call works, but I need to check the email and the password user-typed. How do I pass the variables email and senha in the…
-
1
votes2
answers497
viewsHow to receive value from a variable of another Class
I have a class variable Class1 and I want to use this variable in a function in the class Class2 Tela1 has as its control the Class1 and tela2 has as control the Class2 when called to tela2, Class2…
-
1
votes0
answers29
viewsXcode 7 Swift Local Network Audio Chat
I am developing a simple application in Swift that can make "connection" in the local network, without use of external server, I have worked with socket in C++ where I stream images from the…
-
1
votes1
answer350
viewsCan you create a table with Swift that contains multiple columns?
I need to assemble a table with multiple columns with the details of the customer’s purchase, but with the tableView I can only create tables with one column, can I use the tableView or something…
-
1
votes1
answer99
viewsRequest for slow scrolling json for tableview
I have an application that returns a json to a tableview, but each time I roll the cells it kind of "chokes", I was told that I would have to leave the return function of the asynchronous json...…
-
1
votes2
answers948
viewsHow to transition screens programmatically with Swift?
Good evening, guys. I’m trying to do some programmatically transitions of the screen with Swift, but I can’t. I tried to use navigationController, but it didn’t work, it always gives a different…
-
1
votes1
answer41
viewsHow to pass a "title" on an Int-like "Uialertcontroller" with Swift?
Good afternoon, you guys. I’m calling an Alert in my code where I need its "title" to be the return id of a JSON, my json object has id and status, the id is of type Int and the status is of type…
-
1
votes1
answer151
viewsUpload photos IOS Swift
I have an application where I need to upload some photos to a server, when I upload a single photo works all right, now if it is two or more photos takes expressive time to complete the operation. I…
-
1
votes2
answers355
viewsCreate 3x3 array using Imageviews - SWIFT
How do I programmatically create a 3x3 matrix composed of 9 Imageviews ?
-
1
votes1
answer290
viewsHow to use an imgLoad before loading Webview
In swift I can load a webView by doing the following: 1 - Add Uiwebview to my View. 2 - I create an Outlet called webView in my viewcontroller.Swift 3 - Insert the following code into my function…
-
1
votes0
answers325
viewsHow to integrate with Pagseguro using Uiwebview on Swift
I’m trying to integrate Pagseguro with my Swift application using Uiwebview, using POST method, but it didn’t work. following error being returned and the part of my code where I make the call:…
-
1
votes1
answer101
viewsHow to automatically add lines (label) to an Uicollection in Swift?
In my application I managed to use Uicollection to show a "table" with horizontal scrolling containing the purchase information of the customer with header, but now I have another question, I need…
-
1
votes2
answers78
viewsWhy is my request blocking events?
I implemented a json http request that works well, but it prevents the user from clicking by being able to access the information only when it is downloaded. Example: I have a Uitableview with 3…
-
1
votes2
answers997
viewsHow to customize Uitableview?
I’m populating a UITableView with data that I pick up on a Webservice JSON. These data are texts that I need to format. It’s coming this way: My Viewcontroller: // // ViewController.swift //…
-
1
votes1
answer85
viewsHow to make a Reusavel Tableview?
On 90% of my screens I will need a tableview to fill the content, how can I make this tableview reusable ? I say how I can simplify the insertion of this table in several views, my code is as…
-
1
votes1
answer269
viewsHow to keep the user authenticated?
I’m using Alembic to send the authentication request like this: let user = "user" let password = "password" Alamofire.request(.GET, "https://httpbin.org/basic-auth/\(user)/\(password)")…