Tagged: #SwiftHelp

UIPinchGestureRecognizer (Swift)

UIPinchGestureRecognizer – tap the screen with two fingers and spread them in different directions, so you can increase the scope of the object, slide the finger together again and so you reduce the area. For example: we need to increase the scope of the picture to see it closer. We create the UIImageView, which we assign to our picture: ➕ imageView.image = UIImage (named: “cat”) Create a UIPinchGestureRecognizer, which assigns the function myPinchTap: ➕ pinchGesture = UIPinchGestureRecognizer (target: self, action: # selector (self.myPinchTap)) In the function myPinchTap, we assign the change in the size of...

Read & comments

UITapGestureRecognizer (Swift)

UITapGestureRecognizer – you can recognize the touch not only on the buttons, but on any object on the view, even touching the area itself. For example: when you click on any place of view, the background color should change from white to red. Create a UIView – the size in the full screen of the device, the background color is white. And we create UITapGestureRecognizer to which we assign the function myviewTapped (see the picture). Swift Programming Apple Xcode

Read & comments

UIGestureRecognizer (Swift)

Recognition of gestures – UIGestureRecognizer. What gestures you can use in your applications: ➕ UIPanGestureRecognizer (pan, you can zoom in and out); ➕ UILongPressGestureRecognizer (action with long screen clipping); ➕ UISwipeGestureRecognizer (paging, brushing objects); ➕ UIPinchGestureRecognizer (increase or decrease of the object); ➕ UITapGestureRecognizer (usual tap on the screen); ➕ UIRotationGestureRecognizer (rotation of the main view). Swift programming tutorial developer Apple Xcode project swipe, tap, long, pinch, pan, rotation

Read & comments

Apple News – Update Xcode 9.4

Xcode 9.4 ClassKit

It’s time to update Xcode! The new version of Xcode 9.4 fixed some bugs and added support for ClassKit, now developers can create full-fledged applications for schools and universities, will be able to track the progress of students, monitor the schedule and homework ? Update Xcode new framework for school – ClassKit Programming developer Swift Objective-C

Read & comments

Create project to Xcode (Swift)

Tell a little about creating a project in Xcode! When you run the project in a pop-up window, you can choose to create a playground (a sort of sandbox), an Xcode project (full project), or a Clone project. In the sandbox, you can test your code, see how it works, but it does not bring any functionality. We need the Clone project to work with the repository. In the Xcode project, you create a complete project that you can build and run. When creating a project, you can select a ready-made template for the future...

Read & comments