Questions tagged as 'swift'

1
answer

Change font size of pickerview

Good afternoon. 09/05/2017 I have the following pickerview: As you can see immediately the first item of the two lists does not appear the whole name. I think because of the size. On the left side the full name is: "BEER OF THE BOA" On...
asked by 09.05.2017 / 21:35
1
answer

How to mount an array dynamically

I would like to make a func to return the array that follows, however I do not know the return type or how to dynamically mount this array: vDataSource_Detalhe = NSArray(objects: NSArray(objects: "Cerveja 01","Cerveja 02"), NSArray(o...
asked by 05.05.2017 / 20:49
2
answers

How to approach the view of your location, and make it follow during a journey?

Please, I'm new to the area and I'm creating an app that will tell the distance, speed, calories spent, and user time during a race / walk. The simulator is finding the location, but the screen does not follow the walk, besides the view from...
asked by 10.04.2017 / 16:57
2
answers

SearchBar shows right result, leads to wrong ViewController

I am putting together an app that shows the managers on Page1 and their respective employees on Page2. I decided to mount it on a plist and load it into a TableView, see: Toloadtheplistcorrectly,IinsertedthefollowingcodeintoAppDelegate:class...
asked by 08.04.2017 / 03:22
1
answer

Accessing another APP within my with OAuth 2.0

How to use OAuth 2.0 to change from Apps. I have some Apps and I want inside that we can access other Apps (from the same supplier), without having to login again.     
asked by 17.03.2017 / 14:17
1
answer

Convert JSONArray to Object

I'm having trouble converting an array I get via webservice CustomRequest request = new CustomRequest(Request.Method.GET, "http://" + url + "/service/usuario/mural", null, new Response.Listener<JSONArray&...
asked by 17.02.2017 / 10:51
1
answer

Migration from Alamofire 2 to Alamofire 4. Extra Argument in call (Request)

When I made the requests to the server I used the following code let URL = Foundation.URL(string: "http:....")! let mutableURLRequest = NSMutableURLRequest(url: URL) mutableURLRequest.httpMethod = "POST" let parameters = ["UserName": "Teste"]...
asked by 12.01.2017 / 11:08
0
answers

Help with adjustsFontSizeToFitWidth?

When using the adjustsFontSizeToFitWidth in the second outlet I get error. Does anyone know how to fix it? Note: The second view controller is like the first, in the same class! import UIKit class ViewController: UIViewController {...
asked by 30.11.2016 / 00:00
2
answers

Image is stretched when I turn a page in Pageviewcontroller

Hello, I'm new to Swift and I'm not understanding why the image stretches when I turn a page using PageViewController as I'll show in the image below: This image is normal, that's when I have not turned the page yet. Butnowistheimageof...
asked by 25.11.2016 / 15:09
1
answer

Array display

I'm having trouble running xcode because of the error below: override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell: TableViewCell = tableView.dequeueReusableCell(withIdentifi...
asked by 27.10.2016 / 15:44