• Reflection effect based on IOS


    This example shares the specific code of IOS to realize the reflection effect for your reference. The specific contents are as follows 1、 Brief description We can duplicate layers, create a duplicate layer, and then rotate it to add the corresponding color difference. The effect can be achievedWhen creating the interface, our view uses vcview […]

  • Image folding effect based on IOS


    This example shares the specific code of IOS to realize the image folding effect for your reference. The specific contents are as follows 1、 Analysis and description 1.1 analysis results When the mouse drags on the picture, there is a folding effect on the pictureThis folding effect is actually a rotation of the top half […]

  • Music vibration bar effect based on IOS


    1、 Simple analysis The music vibration bar does not need to interact with the user. We can use the replication layer to operate. Add vibration bar. Add animation. Copy layer description //Create replication layer -(void)createRepl{ //Replication layer CAReplicatorLayer * repL = [CAReplicatorLayer layer]; repL.frame = self.contentV.bounds; //6 copies repL.instanceCount = 6; //Deformation, each deformation starts […]

  • Uiwebview of IOS can’t get the solution of Web title


    Recently, I encountered a problem inUIWebViewIn the proxy method, executedocument.titleofjsThe code can’t get the page title. The code is as follows: – (void)webViewDidFinishLoad:(UIWebView *)webView { //Get the title name of the loaded HTML file NSString *title = [webView stringByEvaluatingJavaScriptFromString:@”document.title”]; } When this problem occurs, I first determine whether it is the code problem. After analysis, […]

  • Golang Apple logs in and the server verifies the identitytoken (true and valid)


    introduce After 2019, if Apple App wants to support third-party login, it must also support Apple’s third-party login, i.eSign in With Apple, this paper mainly introduces how to use go language to realize the verification of the server when signing in with apple, that isGenerate and Validate Tokens。 Or do not support third-party login, and […]

  • IOS particle path movement effect IOS realizes QQ drag effect


    Particle effect, QQ drag effect, the implementation is very simple, the specific code is as follows 1、 Illustration 2、 Analysis If what we want to achieve is shown in the figure above, we can follow the following steps: Step 1:Our red dot is actually a uibutton. Create a bagevalueview inherited from uibutton Step 2:When initializing, […]

  • Explain in detail the use of C language interface cache in swift and the method of converting array and string into pointer type


    Explain in detail the use of C language interface cache in swift and the method of converting array and string into pointer type Since swift programming language belongs to the upper level programming language, and for the low-level high-performance computing interface in swift, the pointer type in C language is often required. Therefore, when swift […]

  • Implementation method of IOS prohibiting page scaling


    Implementation method of IOS prohibiting page scaling Before ios10, we can prevent users from scaling pages by setting meta: <meta content=”width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;” name=”viewport” /> In ios10 system, meta setting is invalid: In order to improve the accessibility of websites in Safari, users can manually zoom even if the website has user scalable = […]

  • Tips for using iPad as a secondary screen of Windows computer


    I believe many users are worried that iPad and computer can’t fully cooperate when multitasking This problem has led many users to “force” their iPads or computers to eat ash Have you ever thought about using the iPad as a secondary screen to help the computer? Test equipment and environment: notebook computer loaded with win11 […]

  • IOS verification code button countdown function


    In order to avoid brushing the verification code in a short time, a layer of verification is often added where the verification code is required for app registration or login. After the countdown, you can get it again! The code implementation is as follows: // _ Countdowntime total countdown time; //_ Timer timer – (void)startTime:(UIButton […]

  • Detailed explanation of uploading files with application / JSON in IOS development


    This article will explain to you the form of uploading files in application / JSON in IOS through example code. For details, please refer to this article. In the process of background interaction with sever, sometimes they need us IOS developers to upload in the form of “application / JSON”. NSString *accessUrl = [NSString stringWithFormat:@”%@/xxx”,@”https://www.xxxxx.com:xxxx”]; […]

  • IOS clears all cached instance code


    This article introduces the example code of IOS clearing all caches and shares it with you, as follows: Compute cache NSString *libPath = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES)[0]; CGFloat fileSize=[self folderSizeAtPath:libPath]; – (float ) folderSizeAtPath:(NSString*) folderPath{ NSFileManager* manager = [NSFileManager defaultManager]; if (![manager fileExistsAtPath:folderPath]) return 0; NSEnumerator *childFilesEnumerator = [[manager subpathsAtPath:folderPath] objectEnumerator]; NSString* fileName; long long folderSize […]