Questions tagged as 'swift'

0
answers

UITextField Swift Show error

I have the following UITextField @IBOutlet weak var txtIdentificationCard: UITextField! What I would like is to be able to show an error when validating the fields, not only mark and change color but also be able to put a text below...
asked by 09.05.2018 / 22:40
1
answer

Create SWIFT pause menu

I am creating an iPhone app using swift 4 and I would like to add a pause menu but I do not know what commands I should use to make everything stop. I have some timers with which I increase the score and create random elements, I had thought I c...
asked by 06.05.2018 / 13:39
1
answer

Swift "IDAT written into file". High memory consumption when saving a one-in-one PNG list

I have a function that I pass a JSON list of names of .png files that has to be taxed in the SandBox as you read a URL. As it is taxing the pngs consumed memory is growing .. until there comes a time that if the list of pngs that I am taxing is...
asked by 10.05.2018 / 17:26
1
answer

CollectionView control

I am developing a game for iPhone with Swift 4 . My problem is this: I have a% co_of% of 10 columns and enough rows, more than 70, so in the iPhone screen only 12 rows of the more than 70 are displayed) We put ourselves in situation:...
asked by 10.05.2018 / 10:57
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
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

how to send a token per head to a webservice in swift 4?

I have a code to send data to a web service that supposedly sends the token, but apparently it is wrong because the token does not reach the server, I hope you can help me. my code is this: let token = "eyJ0enssnsuwew" let url = URL(...
asked by 22.03.2018 / 17:39
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