• An example of IOS Scrollview nested tableview sliding in the same direction


    I’m talking about nested sliding in the same direction, which can be avoided as much as possible. It’s best to use a tableview. If a tableview is not enough, it can be nested again. It is suitable for complex scenes. First of all, I’d like to say something that doesn’t apply, so as not to […]

  • IOS gets the instance of encodeuri and decodeuri of data


    In the process of app development, IOS data processing is inevitable. In the process of IOS data transmission, JSON data cannot be obtained. At this time, it is the turn of encodeuri and decodeuri. 1、encodeURI,decodeURI Encodeuri: encodes a string as a URI · ASCII letters and numbers are not encoded, and these ASCII punctuation marks […]

  • How to add the scoring function of app store in IOS


    The scoring function of app store can be realized in IOS application. There are three ways to summarize, and you can choose according to your own needs. First, three ways to realize the scoring function are introduced. 1. The general way is to open a web page inside the app and jump to the app […]

  • IOS MAC remote connection control window


    When using mac, I want to control windows computer remotely. I’ve been groping for a long time 1. Download the MAC remote control installation package 2. After installation, open it and click the app icon below; 3. After opening, click the plus sign in the upper left corner to add the computer information and screen […]

  • Problems and solutions of IOS 11 and iPhone x


    About IOS 11, the biggest change is to add the concept of a safe area. Most of the problems of IOS 11 adaptation are caused by it. In IOS 11, tableview will shift inexplicably //To solve the problem of IOS 11 tableview drift, set the estimated height to 0 self.tableView.estimatedRowHeight = 0; self.tableView.estimatedSectionHeaderHeight = 0; […]

  • Tomcat tutorial for IOS MAC configuration Tomcat tutorial for Mac environment configuration


    Tomcat tutorial is configured in MAC environment. The specific contents are as follows Tomcat configuration 1. Download Tomcat configuration package from the official website: 2. After downloading, rename the whole folder after decompression: Apache Tomcat (the name is optional), and then put it in a file directory. I put it under / users / […]

  • Two methods of image compression and compression to specified size in IOS development


    ///Compressed picture + (NSData *)imageCompressToData:(UIImage *)image{ NSData *data=UIImageJPEGRepresentation(image, 1.0); if (data.length>300*1024) { if ( data.length >1024 * 1024) {// 1m and above data=UIImageJPEGRepresentation(image, 0.1); }else if (data.length>512*1024) {//0.5M-1M data=UIImageJPEGRepresentation(image, 0.5); }else if (data.length>300*1024) {//0.25M-0.5M data=UIImageJPEGRepresentation(image, 0.9); } } return data; } PS: let’s take a look at the image compression in IOS to the specified […]

  • Summary of how to solve the problem that xcode9 log can’t output Chinese in IOS


    Problem description Xcode’s log output in Chinese is usually rewrittenNsarray, nsdictionary’s – (nsstring *) descriptionwithlocale: (ID) locale;Method. Recently, after upgrading to xcode9, it was found that the original processing logic could not meet the requirement of outputting Chinese. The status description returned by the background involving Chinese has become Unicode encoding. In fact, this is […]

  • The solution of mobile page not displaying pictures in IOS


    In the development of mobile terminal, sometimes I may encounter such a problem. I download pictures from other websites and make H5 pages, but they are displayed normally in the browser and Android. However, when I arrive at IOS, the pictures will not be displayed. At this time, I need to pay attention to it. […]

  • Solution of no navigation bar page adaptation problem for iPhone x


    The original full screen adaptation in the iPhone x will cause incomplete display due to changes in the security area. The solution is as follows: stay self.view Add a view to the view, and the rest of the views are based on the layout of the view, and the constraints of the view change with […]

  • Batch update of fmdb transaction in IOS


    This example for you to share the IOS fmdb transaction batch update data, for your reference, the specific content is as follows Open database (SQLite) ///Open database + (BOOL)openDataBase{ _TYDatabase = [[FMDatabase alloc]initWithPath:[self databasePath]]; if ([_TYDatabase open]) { return YES; } return NO; } ///Database path + (NSString *)databasePath{ NSString *documentPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) […]

  • Implementation code of playing while playing in IOS


    In the project, avplayer was used to play the URL address directly, but I don’t know whether the WiFi of the camera is not stable or the code is faulty. The app always has a buffer jam, so I consider rewriting it into the mode of “play while you go”. After checking many materials, I […]