Questions tagged as 'swift'

0
answers

Problem with UIPageViewController

I'm doing a project, and I started with one that Xcode gives you by default, it works fine, but I want to leave the login box that is static so when you scroll it always stays, just change some content of the label above, but the UIViewControlle...
asked by 23.10.2017 / 23:50
1
answer

How to return an entity with enum

How about everyone. I'm trying to return an entity with an enum, not a tuple. Currently I have already returned exceptions but my intention is to have entities by defects, because they are few. I do this to return an exception with enum....
asked by 12.09.2017 / 19:57
1
answer

Core graphics - Create and draw a CALayer

Good, I'm having a problem that does not throw any errors by console, just Xcode goes AppDelegate with a red line. I'm trying to create a UIButton with a sublayer which should be a circle bordering the button (which would also be a circle...
asked by 10.09.2017 / 17:38
1
answer

Use SWRevealViewController with TabBarController Swift 3

Good afternoon, I'm using this library to open a side menu:    link Everything works correctly, opens and closes the menu correctly, I am also using a TabBar, it is staying like this: So far so good, my query comes when for exa...
asked by 02.08.2017 / 21:02
1
answer

swift 4 decoder STRUCT MAPPING JSON

I have this json structure and what I want to do for now is just print it on the console, I'm learning to map a json my struct: struct Buscajson: Decodable { let status: Int? let mensaje:String? let empresas: emp...
asked by 24.08.2017 / 00:57
1
answer

Swift 3 - Wait for the server result

How could I wait for the server to return a result and only then execute another function (which will use data from the server response). Something like: func A: I get response from the server: responseCode = 200, which I store in a varia...
asked by 13.07.2017 / 10:51
1
answer

MPNowPlayingInfoCenter buttons do not work

I am creating a radio app, but when I want my play and pause buttons to work with MPNowPlayingInfoCenter , only play appears. em> and it does not change to pause . I hope you can help me. if NSClassFromString("MPNowPlayingInfoC...
asked by 15.06.2017 / 21:16
1
answer

The viewdidappear () of my controller is not called when I use it in the tab bar controller

What I want to do is that when I come from a 3d shortcut, force the tab bar controller to choose an index. If I do this in the viewdidAppear() of the tab bar controller, the problem is that the viewDidAppear() of my main embedde...
asked by 29.03.2017 / 13:08
0
answers

IOS Swift TimeLine Twitter get text

I have to show the content of some tweets of certain Twitter accounts, I show the TimeLine of the user who passed him without problems through Fabric and TwitterKit. The problem is that I have to store these tweets in a database, the text, the a...
asked by 15.03.2017 / 17:51
1
answer

Remove against bars for json string format

I have a string inside a dictionary that I am trying to pass to jsonstring but it is not removing the backbars and the server does not swallow it. Any ideas? The code is as follows: let myBod = "\"Body\": {" + "\"type\": \"multipart...
asked by 17.03.2017 / 10:13