Category:IOS

  • IOS enables full screen video playback and full screen cancellation

    Time:2021-8-2

    This example shares the specific code of IOS to realize video playback and cancel full screen function for your reference. The specific contents are as follows IOS video playback full screen and cancel full screen functions are realized. The VC where the required full screen video is located needs to be controlled by the navigation […]

  • How to add hidden keyboard function to IOS keyboard

    Time:2021-8-1

    This example shares the specific method of adding hidden keyboard function to IOS for your reference. The specific contents are as follows Keyboard add a hidden keyboard function usage method:Import xmcustomkeyboard. H[xmcustomkeyboard cancelablekeyboard: control object];Control objects can be instances of a series of classes that call keyboard input, such as uitextfile, uitextview, UISearchBar, etc 1. […]

  • IOS enables cell folding

    Time:2021-7-31

    This example shares the specific code of IOS to realize cell folding for your reference. The specific contents are as follows The core of folding is that the number of rows or columns of a cell changes in real time The more important steps are: 1. Set array (variable array, used to update cell content) […]

  • IOS realizes the floating effect of dragging view with fingers

    Time:2021-7-30

    This example shares the specific code of dragging view to float with your finger in IOS for your reference. The specific contents are as follows design sketch: 1. Customize the view to float with the finger // // OrangeView.m //Drag the view to float with your finger // // Created by llkj on 2017/8/16. // […]

  • IOS realizes picture dithering effect

    Time:2021-7-29

    This example shares the specific code of IOS to realize the image dithering effect for your reference. The specific contents are as follows design sketch: Core code: // // ViewController.m //Icon jitter // // Created by llkj on 2017/8/29. // Copyright © 2017 laynecheung. All rights reserved // #import “ViewController.h” #define angle2Rad(angle) ((angle) / 180.0 […]

  • IOS drawer effect

    Time:2021-7-28

    This example shares the specific code of IOS drawer effect for your reference. The specific contents are as follows Drawer effect: #import “DragerViewController.h” #define screenW [UIScreen mainScreen].bounds.size.width @interface DragerViewController () @property (nonatomic, weak) UIView *leftV; @property (nonatomic, weak) UIView *rightV; @property (nonatomic, weak) UIView *mainV; @end @implementation DragerViewController – (void)viewDidLoad { [super viewDidLoad]; //Add child […]

  • IOS to achieve simple drawer effect

    Time:2021-7-27

    Drawer effect The so-called drawer effect is three views. Drag to the right to display the left view and drag to the left to display the right view. When the drag is greater than half of the screen, the top view will be automatically positioned to one side. When you click the left or right […]

  • IOS implements pop-up tabs with masks

    Time:2021-7-26

    In the process of our daily development, we will inevitably encounter the needs of some options. The following is a small demo I made for our needs. I won’t talk more. Let’s go to the pictures and code. In this way, when we select the cell above to click, I will transfer the data to […]

  • How IOS cuts pictures into circles

    Time:2021-7-25

    This example shares the specific code for IOS to cut the picture into a circle for your reference. The specific contents are as follows Original drawing: Circular picture clipping effect: Crop to round picture with border: Core code: #import <UIKit/UIKit.h> @interface UIImage (image) /** *Generate a circular picture * *@ param image picture to crop […]

  • IOS custom date selector

    Time:2021-7-24

    preface Encapsulates a date selector to solve two problems:1. Click textfield to pop up the logic processing of keyboard and date selector;2. When the date selector needs to be used multiple times in the same interface, judge the textfield clicked; 1、 Encapsulates the date selector class ycdatepickerview 1. Create a new class based on uiview […]

  • Localization / internationalization of IOS language in 3 minutes

    Time:2021-7-23

    preface Language localization is also called language internationalization. According to the language setting of the user’s operating system, the language of the application program is automatically set to the same language as that of the user’s operating system. Often some applications need to be provided to people in multiple countries, or a country has multiple […]

  • IOS realizes H5 payment (WeChat, Alipay) native encapsulation

    Time:2021-7-22

    preface Payment is divided into app payment, H5 payment and code scanning payment. App payment is generally used in apps, and the corresponding payment SDK needs to be integrated. H5 payment is mostly used for web pages. If your app doesn’t want to integrate the payment SDK and wants to realize the payment function, you […]