Tagged: #development

Gif animation (Swift)

Embed Gif animation? Easy! ? There are 3 easiest ways to embed an animation into a Gif application:  Download using UIImageView: ??? ???????? = ???????.???????????????? (“????”) ??? ????????? = ??????????? (?????: ????????)  Download using Data: ??? ????????? = ???? ???? (??????????: ??????.????.??? (???????????: “???????”, ?????????????: “???”)!) ??? ?????????? = ???????.???????????????? (?????????!) ??? ????????? = ??????????? (?????: ??????????)  Download via URL: ??? ?????? : ?????? = “????://???.????.???/???????.???” ??? ???????? = ???????.???????????????(??????) ??? ????????? = ???????????(?????: ????????) Cats Gif RabbiFox 2-3 easy steps and animation is built in! Supplement to the code in the document: iOSGIF.swift Swift...

Read & comments

Localize the storyboard and xib (Swift)

  • 1
  • 2
  • 3

We learn to localize the storyboard or xib. First, create your application, then go to Project – Info – Localizations, click on + and add the languages ​​you need (Pic 1), when adding, you can check which objects you want to apply localization to. Next, next to your storyboard or xib, you will see a down arrow, expand the list, and you will see that the strings file (the specified language) has been added and it lists all the text that is in the storyboard (Pic 2). You can select all languages ​​in the Inspector...

Read & comments

UIPanGestureRecognizer (Swift)

UIPanGestureRecognizer – with it you can move the overview of the area. For example: you can use UIPinchGestureRecognizer to magnify the picture and now you need the ability to move the viewport to view it completely. ✅ – Create a UIImageView; ✅ – Create UIPanGestureRecognizer () ✅ – Assign PanGesture function for panning (panGesture = UIPinchGestureRecognizer (target: self, action: # selector (self.handlePan))); ✅ – We write the necessary actions in the function (@objc func handlePan (recognizer: UIPanGestureRecognizer) { let translate = recognizer.translationInView (self.view) if let view = recognizer.view { view. center = CGPoint (x: view....

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