Tag:ios

  • 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 […]

  • 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 […]

  • Example summary of wechat H5 payment by IOS app

    Time:2021-7-21

    Wechat H5 payment process 1. Initiate order request(Call unified order interface)Note: transaction type trade_ type=MWEB 2. The unified order interface returns payment related parameters to the merchant background, such as payment jump URL (parameter name “mweb”)_ URL) through mweb_ URL to call up the middle page of wechat payment. For example: https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_ id=wx27142704550165900edae5270331515985&package=600759311&redirect_ url=http%3a%2f%2www.baidu.com 3. […]

  • Perfect solution to the occlusion problem of the bottom toolbar of the new version of IOS wechat

    Time:2021-7-19

    1、 Problem Description: After opening the H5 page in the wechat of Apple device (IOS) and jumping from the home page to other pages, a toolbar with forward and backward buttons will appear at the bottom of the page, which will block the content at the bottom of the page and affect the normal use […]

  • Solution to the problem of the bottom return bar of the new version of IOS wechat

    Time:2021-7-18

    I didn’t know much about wechat development before, but I’m familiar with H5. Recently, a WeChat official account has been maintained, and the pit of iOS return has been encountered. Describe: After opening the page from the official account, there is a small horizontal bar at the bottom, which also blocks the page. It can’t […]

  • Compatibility instance code of gettime() in IOS

    Time:2021-7-16

    The time format is: 12:00:00, December 12, 2017. There is a compatibility problem when obtaining the time stamp on apple You need to convert to 2017 / 12 / 12 12:00:00 to get the time stamp correctly let u = navigator.userAgent; // Determine browser model let isAndroid = u.indexOf(‘Android’) > -1 || u.indexOf(‘Adr’) > -1; […]

  • How to use OpenGL es to realize drawing board in IOS

    Time:2021-7-15

    Today, we use OpenGL es to implement a drawing board, mainly introduces the implementation scheme of drawing smooth curve in OpenGL es. First of all, let’s look at the final effect In IOS, there are many ways to implement a drawing board. For example, my other project mfpaintview is based on coregraphics. However, using OpenGL […]