На информационном ресурсе применяются рекомендательные технологии (информационные технологии предоставления информации на основе сбора, систематизации и анализа сведений, относящихся к предпочтениям пользователей сети "Интернет", находящихся на территории Российской Федерации)

Allow only numbers for UITextField for iPad (Swift 4.x-5.x)

It’s easy for iPhone. Need only set it on your Storyboard: But it doesn’t work for iPad. So, time for coding. Below is a solution to this problem for Swift 4.x-5.0 which I use in my application. First of all, add UITextFieldDelegate here: import UIKit class ViewController: UIViewController,
...Далее

Saving the selection of UISegmentedControl (Swift 4.x-5.x)

It happens that you need to save the previously selected value in the UISegmentedControl. Below is this solution for Swift 4.x-5.0 which I use in my application. It would seem that there is difficult? After all, you just need to save the previously selected value. But just such a small Read more…
...Далее

Two ·func textField· at the same time (Swift 4.x-5.x)

It just so happens that in the Swift we cannot use func textField more than once, even if you have few solutions for your application. What to do in this situation? You just need to put all your code snippets into one func textField. That’s all. For example, I posted Read more…
...Далее

Set the maximum numbers of characters of the UITextField (Swift 4.x-5.x)

It happens that you need to protect the user from entering too much characters in the UITextField. First of all, the amount of data that it will enter doesn’t exist in the world (for example, phone number of 100 characters). Secondly, it will destroy the design of your application. Below Read more…
...Далее

How to disable UIButton if UITextField is empty? (Swift 4.x-5.x)

I think it’s pointless make the button for sending data available if data is empty. This is also meaningless for the user. All he’ll get is also empty data. In some situations, the application may crashes. Same as mine. Below is a solution to this problem for Swift 4.x-5.0 which Read more…
...Далее

Картина дня

наверх