Questions tagged as 'xcode'

1
answer

How can I put two types of NS in the same class - Xcode Swift OSX

How could I put NSTexField, NSViewController together in the same cocoa class? import Cocoa import Foundation class Licencia: NSTextField , NSViewController {}     
asked by 24.04.2018 / 10:56
1
answer

Unable to simultaneously satisfy constraints: FBSDKLoginButton

I have created a button of type FBSDKLoginButton to which I have given a series of constraints, including a height. This is the error that jumps me: Does anyone know how I can prevent this warning from skipping on my console? It is not...
asked by 24.04.2018 / 15:46
1
answer

How to pair a string to jsonObject Xcode (Swift)

let request = NSMutableURLRequest(url: NSURL(string: "https://blablabla.php")! as URL) request.httpMethod = "POST" request.httpBody = "Accion=SincronizarProducto".data(using: String.Encoding.utf8) let task = URLSession.shared.dataTas...
asked by 29.04.2018 / 21:35
1
answer

How is CamelCase used in Swift3?

How can I use CamelCase on a String I use in Swift 3? The problem is that I have an example of how I could apply it. For example I use a variable like the following:    var textTest: String="amelCase is a writing style that is   Applies to...
asked by 23.04.2018 / 02:56
0
answers

Error Xcode: Status bar could not find cached time string image

Since I updated to Xcode 9.3 I get this error:    Status bar could not find cached time string image. Rendering   in-process. Do you know what it is or why it can happen? Initially everything is fine and the application does not give m...
asked by 19.04.2018 / 08:49
1
answer

Change the source to a DatePicker

I've been searching for days and I can not change the source of a Datepicker control. I can change the color by:    datePicker.tintColor = UIColor.blue But I can not find how to change the font and its size.     
asked by 20.04.2018 / 08:33
1
answer

I want to use a picker for two different text boxes

In one if it works for me but in the other when it is time to accept or cancel, it sends me an error. func createDataPicker(_ textField : UITextField) { self.picker = UIDatePicker(frame:CGRect(x: 0, y: 0, width: self.view.frame.siz...
asked by 18.04.2018 / 18:53
0
answers

Secure Text Entry does not show the pressed key points

Retouching a text box to enter a password, I had activated the option "Secure Text Entry" but now I do not see the points as a letter. I thought it was because I had them with the same background color but I have been looking and I do not see th...
asked by 21.03.2018 / 13:25
1
answer

Sudden closure of the app, if it is with xcode does not close. It happens when changing the type of keyboard from iphone

I have developed an app for IOS with swift , until here everything is correct, I made debug tests with xcode and no problem. But a user of the app has contacted me because when he goes to a screen that is a form, and clicks on a te...
asked by 29.03.2018 / 13:52
0
answers

Registration via post swift

I am sending user registration, it is the first time I use swift, I have my API for registration which takes the following parameters via POST: name lastname email password mobile I send the information as follows: if(user == "" || lname...
asked by 21.03.2018 / 01:53