Tag:IOS development

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

    Time:2021-2-27

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

  • Timing of controlling nslog output in IOS

    Time:2021-1-9

    -(void)saveDEBUGlog{ NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentDirectory = [paths objectAtIndex:0]; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@”yyyy_MM_dd_HH_mm_ss”]; NSString *currentDateStr = [dateFormatter stringFromDate:[NSDate date]]; NSString *fileName = [NSString stringWithFormat:@”testLog_%@.log”,currentDateStr]; NSString *logFilePath = [documentDirectory stringByAppendingPathComponent:fileName]; //Delete the existing file first NSFileManager *defaultManager = [NSFileManager defaultManager]; [defaultManager removeItemAtPath:logFilePath error:nil]; //Input log to file freopen([logFilePath cStringUsingEncoding:NSASCIIStringEncoding], […]

  • Summary of problems encountered in the development of IOS barrage

    Time:2020-9-18

    preface Bullet screen is now available in all kinds of videos, and it is also a function that every developer must know. Recently, we have encountered some problems in the development. Let’s briefly talk about two small problems encountered in the development of bullet screen. text Requirements: to achieve a barrage container, there will be […]

  • Some knowledge about pictures

    Time:2020-5-6

    If I can remember any bug in the previous project, I will not hesitate to say that it is memory overflow (OOM), because at that time, no matter from the error information of dsym or the third party, I couldn’t find the problem, and I rarely encountered it in the development process. Now I know […]

  • Introduction to the process, steps and tools of IOS app re signing IPA

    Time:2020-3-17

    IOS app re signing is the process of re building the IPA encryption by using the new IOS certificate for the exported IPA file! To make the IPA files that could not be installed to Apple mobile phones become IPA packages that can be installed! Re signing IPA requires signature tools! It is recommended to […]

  • Meet coredata – get to know coredata

    Time:2020-2-15

    This article belongs to the original of “Jianshu Liu Xiaozhuang”. Please indicate: < Jianshu Liu Xiaozhuang > http://www.jianshu.com/p/c0e12a897971 `During this period, the company has been relatively busy, and together with the small partners in the group, the company’s project has been rewritten according to the previous logic. Because the project is relatively large, and the […]

  • Understanding coredata – using advanced

    Time:2020-2-13

    This article belongs to the original of “Jianshu Liu Xiaozhuang”. Please indicate: < Jianshu Liu Xiaozhuang > http://www.jianshu.com/p/a4710356244d The previous two articles are more theoretical, more text expression, but are dry goods! When learning, we should understand the theoretical knowledge first, so as to better help the later understanding. In this article, we will talk […]

  • An example of fault tolerance in IOS development

    Time:2020-2-13

    Preface Sometimes the value returned by the background server to the client will be null, sometimes “< null >”, and sometimes it will crash if the value is assigned directly and subsequent operations are carried out. The previous processing method is to try not to return null or “< null >” when the background server […]

  • Understanding coredata – advanced usage

    Time:2020-2-12

    This article belongs to the original of “Jianshu Liu Xiaozhuang”. Please indicate: < Jianshu Liu Xiaozhuang > http://www.jianshu.com/p/01f36026da7d In the previous articles, I have talked a lot aboutCoreDataUse relevant knowledge points. This article focuses on two aspects,NSFetchedResultsControllerAnd version migration. Although there are“Advanced”In fact, the two words are not advanced, just because there are too many […]

  • Detailed implementation of emoticon keyboard in IOS

    Time:2020-1-17

    Preface Recently, I have made a demand for expression keyboard in the company. The technical difficulty of this demand will not be great, and it is more business oriented. But it’s not easy to do a good user experience. There are several points that need special attention. If you don’t want to say much, start […]

  • Method swizzling in IOS development

    Time:2019-12-31

    <p align=”center”> <img src =”https://raw.githubusercontent…;/></p> Method swizzling in IOS development As long as you make good use of Google, there are a lot of things about it on the InternetMethod SwizzlingI’m not going to post the code here. I’ll mainly introduce the concept, principle, precautions and so on. Development needs If the product manager suddenly […]

  • Solution to segv? Accerr problem in IOS 9 system

    Time:2019-12-15

    I haven’t blogged for a long time, but I’m a little rusty. Thank you for your support. I recently returned to my old business——IOS development。 After that, most of the blogs are related to IOS. Of course, I will continue to pay attention to the front-end technology, and welcome friends to join me Today we […]