Questions tagged as 'swift'

2
answers

How do I make an Alert message UIAlertController

Good, How do I make an alert? the way I did it seems to be all right except for the function error. Some help, thank you in advance.     
asked by 09.10.2016 / 01:28
1
answer

PopOver Menu IOS Swift

I'm trying to make a menu PopOver similar to WhatsApp but to no avail. I wanted to make a menu similar to the one below. The only menu% w / w I can do is with the white background and occupy the entire screen even though it i...
asked by 10.09.2016 / 15:37
1
answer

Complete Range Argument in Swift 3.0

I was normally using this code in a Swift 2.0 project, then I decided to update the project to version 3.0 and adapt some functions that have changed ... Only the last "range" argument I can not adapt. Swift 2.0 code: if let range = string....
asked by 26.07.2016 / 00:56
2
answers

Is it possible for a Closure (Swift) to capture reference of the instance of the object that executes it?

I'm passing a closure to an object's property, and within the closure I'd need to reference the instance of the object that will execute the closure. Example: typealias validator : ()->Bool class Field : NSObject { var name...
asked by 21.11.2016 / 14:23
1
answer

How 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", message: "Para aceder ne...
asked by 16.06.2016 / 14:44
1
answer

Delete a TableView + CoreData row

I'm creating an application with tables and persistence with CoreData , but when I ask to delete a line it does not disappear completely from the screen, leaving the symbol ... disappearing only when I go to a second screen and I go back....
asked by 06.06.2016 / 19:01
1
answer

Override returns error in secondary ViewController in Swift2

I'm getting this message below when trying to swipe into a cell in a TableView. Reminding me that I'm doing this in a viewcontroller file and not in a tableViewController. Is it possible?    Method does not override any method from ist superc...
asked by 08.07.2016 / 21:58
1
answer

performFetchWithCompletionHandler not being called into production

I'm implementing an app in Swift 2 that makes requests to an xml feed from time to time, and triggers a local notification. For that, I'm using the performFetchWithCompletionHandler method in AppDelegate. Locally, using my device, the met...
asked by 09.10.2015 / 23:54
1
answer

Questions for app development with swift [closed]

I'm working with an app for iOS and I'm using Swift. My client who owns a restaurant would like to use an admin panel to add new dishes to the app. I would like to know if there is a panel on the net that already does something like this or i...
asked by 15.10.2015 / 04:23
1
answer

Swift - Activity indicator on Table view

I am trying to implement a Activity Indicator on a Table View but it is not working properly. It appears under the Table Cells Here is my code and the image of how the indicator appears. import UIKit class SelecionaPai...
asked by 18.04.2016 / 21:26