Git Product home page Git Product logo

myproject's Introduction

代码整理

  • CrashClass 崩溃是存储到本地

引入头文件后在AppDelegate中写下这句话即可 NSSetUncaughtExceptionHandler (&UncaughtExceptionHandler);

  • FTPManager 可配合崩溃日志上传至FTP

//判断网络环境

NetworkStatus netstatus = [[Reachability reachabilityForInternetConnection] currentReachabilityStatus];
if (netstatus == ReachableViaWiFi) {
    NSUserDefaults *user = [NSUserDefaults standardUserDefaults];     
    if ([user boolForKey:@"crash"]) {
        [user setBool:NO forKey:@"crash"];
        dispatch_queue_t defQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0);
        dispatch_async(defQueue, ^{
        self.ftpmanager = [[FTPManager alloc] initWithServer:@"FTP地址" user:@"用户名" password:@"密码" directory:@"存储路径,可多级,自动创建目录,自动创建1级目录下ini文件,第一次过后可根据修改ini文件设置下次是否再次上传"];
        });
    }
}
  • tradeView 简单的实现了交易密码框 可由代码和xib两种方式创建
  • 常用的Category的整理--UIView的Category中有个人封装的tapGuesture的Block
  • 封装带des加密的网络请求
  • 选择菜单以及弹出文字
  • 模仿网易大乐透走势图动画,LottoDemo为普通控件创建实现动画,LottoDemo2为纯绘制实现效果,速度为普通实现方式的25倍,LottoDemo实现速度为54-60毫秒,纯绘制实现速度为2毫秒左右
  • SelectButtonView是纯绘制模拟实现网易彩票 按钮数字,放大文字的功能
  • WebCache基于YYDisCache和NSURLProtocol实现UIWebView离线缓存
  • YMCrashUpLoadFTP为崩溃日志以及自动上传FTP功能封装的一个SDK
  • MyImagePicker是基于AssetsLibrary框架模仿微信的相册多选功能

myproject's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.