Questions tagged as 'swift2'

1
answer

Fit View Swift

Hi, I'm finishing an application. The problem is that in 3.5 and 4 inches it looks good but in 4.7 and 5.5 it looks quite misadjusted the screen the objects were not centered and some appeared on posts in my storyboard add a View to order the sc...
asked by 08.06.2016 / 23:54
1
answer

Error Slim Swift 2

I have a native iOS application, in which I must consume a web service where I send a photo in base 64 to the backend in php with slim framework but I return the following error on the code 64 of the image: recoverable error: Corrupt JPEG...
asked by 01.06.2016 / 22:23
1
answer

Border radius Swift Ios

How can I set a border radius to a UIView in swift , but only in the top part, below it has to be straight I currently have this: caja!.layer.cornerRadius = 7.5 but it shows me the border in the whole box Any solution?...
asked by 22.07.2016 / 11:39
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
2
answers

How to change label text with delay and in another thread?

As the question correctly says, I need to change the text of 4 different labels without the view being left without being able to process other processes and also between these changes of text I need a delay of at least 1 second. I already try t...
asked by 24.05.2016 / 22:43
1
answer

Run FirebaseLoginViewController with Swift

After the announcement that it will close in January of next year. I have decided to use Firebase. The good thing is that my App is still in development and had not advanced much, however one of the parts that had already been proven was the aut...
asked by 15.02.2016 / 21:46
1
answer

Variable returns me nil finishing a function

At the time of wanting to add data to an array, the function shows me that the elements are added, but at the time that the tableView deploys what the array contains, it displays that it contains nothing, what can be the fails? func descargarI...
asked by 04.02.2018 / 03:29
1
answer

retrieve the 'title' value of a button

func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { let identifier = "item" let cell = collectionView.dequeueReusableCell(withReuseIdentifier: identifier, for:...
asked by 01.02.2018 / 12:50
1
answer

Deactivate items in UICollection View

I have a UICollectionView where buttons are created func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { return (self.myGrid!.HEIGHT * self.myGrid!.WIDTH) } func collectionVi...
asked by 06.02.2018 / 19:01
0
answers

SWIFT Scrollview in a view to select multiple horizontal images

I hope someone helps me, I have a scrollview to select an image, and as it is common to pass the selected image to the view and the others are not seen, I would like to have the collection of images in the same view and be able to select one but...
asked by 07.11.2017 / 16:55