Questions tagged as 'swift2'

1
answer

Error serializing data received from a swift web service 2

Good morning I would like you to help me please, I have a web service in Swift 2 returns an array like that    {"message": "Successfully Stored Image." "error": false} but at the time of serializing it do{ let json = try NSJSONSer...
asked by 25.05.2016 / 16:05
2
answers

How to create an image gallery in Xcode 7 Swift 2

Hi, I'm starting to use Xcode 7 with Swift 2, what I need is basically on a screen to display a gallery of images in which more 20 images should go. I was looking for how to achieve this and the only thing I found is that an image they divided i...
asked by 13.05.2016 / 21:56
1
answer

UIPageViewController in Swift

Hi, I'm following a tutorial on UIPageViewController to generate a gallery of images in my project link even download the demo and it works but in my case it gives me an error and the application is dropped.    fatal error: unexpectedly fou...
asked by 30.05.2016 / 19:02
0
answers

Error consuming a POST web service

Good afternoon I have the following error when consuming a web service by POST: Error Domain = NSCocoaErrorDomain Code = 3840 "JSON text did not start with array or object and option to allow fragments not set." the error comes out just at th...
asked by 01.06.2016 / 17:23
1
answer

Two links in a table view cell swift 2

I'm doing an app in Swift 2 , and I have a UITableView with tweets that I get with the Twitter API, and I show the profile image, the user name, the publication date and the content of the tweet. What I want is that if I click on th...
asked by 15.06.2016 / 07:44
1
answer

Adapt images in a UIImageView in Swift 2

I am developing an app that works as a rss reader, when reading the information of an xml, I get the title of the news, the date, and an image, I get the image with the following code: var cell:UITableViewCell = UITableViewCell() cell = tableV...
asked by 16.06.2016 / 12:34
1
answer

Constraint in Swift 2

Is there any way to make responsive content without using Constraint? Because I'm making a rss reader and to adapt to all the iphone I have to put constraints but whenever I use them I see these errors in the console Probably at least one of t...
asked by 14.06.2016 / 14:17
1
answer

Detect Touch event from a SKSpriteNode Parent

I have a btnPause that is a SKSpriteNode and to this node I added two children: let pauseOrange = SKShapeNode(circleOfRadius: 12) ... let pauseX = SKSpriteNode(imageNamed: "close") ... btnPause.addChild(pauseOrange) btnPause.addC...
asked by 19.02.2016 / 23:43