Questions tagged as 'swift'

2
answers

call to URL from Swift

Good morning. Following the development of an app connected to a relay board through the network I have encountered a problem. I have a board connected to a network with an ip: 192.168.0.190 to activate or deactivate the relays simply I ha...
asked by 05.10.2016 / 17:08
2
answers

Notifications do not reach the device

How about, I have a problem, I try to send notifications from php to ios, I already did all the steps and testing it with an APN Tester program if everything goes well, when I try to send from PHP I get it sent correctly but do not reach the iPh...
asked by 29.09.2016 / 23:41
1
answer

Swift global functions [closed]

Well, I've been reading and learning a bit about swift but I still do not understand how I can call a function, without having an object or class that has it. An example: print() - It's a function that I can use anywhere in the code...
asked by 22.03.2016 / 23:28
1
answer

variable declaration Dictionary swift

I have a function to obtain the coordinates according to address. I have to declare a variable as dictionary to transform a result into json. var error: NSError? let dictionary: Dictionary<NSObject, AnyObject> = NSJSONSerializ...
asked by 19.03.2016 / 01:31
1
answer

Estimated time with traffic

Is there a way to know the estimated time between 2 CLLocations and that traffic is taken into account in that calculation?     
asked by 02.04.2016 / 14:04
1
answer

Swift. Thread running even while being in other apps

I need to keep a thread running even when the user is inside another application. I tried the following thread that works only if I keep the application visible, once I press the home button, the thread is paused. func prepareSync() { Disp...
asked by 12.11.2016 / 20:55
1
answer

Xib and .swift - Which instance?

As the question says, if I have 2 files: a .xib (which is a view) and a .swift , which corresponds to that view. Which of the two is instantiated? In other words, who calls whom?.     
asked by 11.04.2016 / 20:08
1
answer

Load a xib to my .swift

I'm trying to use my class called: TableViewCellPropia that extends to TableViewCell as cell prototype of my TableView . To my prototype cell, link it with a .xib so that it can be better graphed. Images of the project:...
asked by 10.04.2016 / 02:50
1
answer

cell image is resized when loading TableView

I have the following detail. I have a series of TableViews, in whose cells I am loading background images, so that: override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {...
asked by 10.04.2016 / 06:58
1
answer

Getting a UIImageview to fill the entire screen

I am working with TableViewControllers and in my first TableView I have decided that I should see an image that occupies the whole length and width of the screen in such a way that it does not show what is behind if not until the image disappear...
asked by 30.04.2016 / 00:43