随笔分类 -  [04] IOS 类库

第三方类库
摘要:/** * 对数据库加密 * * @param path path description * * @return return value description */ + (BOOL)encryptDatabase:(NSString *)path; /** * 对数据库解密 * * @param path path description * * @re... 阅读全文
posted @ 2016-07-29 15:50 wangzhipeng 阅读(1818) 评论(0) 推荐(0) 编辑
摘要:监听UITextView控件 text属性 @weakify(self); [self.textViewAdvice.rac_textSignal subscribeNext:^(NSString *content){ @strongify(self); se... 阅读全文
posted @ 2015-12-02 17:52 wangzhipeng 阅读(5000) 评论(1) 推荐(0) 编辑
摘要:1.AFNetworking 目前比较推荐的iOS网络请求组件,默认网络请求是异步,通过block回调的方式对返回数据进行处理。2.FMDB 对sqlite数据库操作进行了封装,demo也比较简单。3.MBProgressHUD 也是iOS项目常用的一个组件,用于显示过渡效果的,比如网络请求之... 阅读全文
posted @ 2015-04-22 20:41 wangzhipeng 阅读(11424) 评论(2) 推荐(2) 编辑
摘要:开发Web等网络应用程序的时候,需要确认网络环境,连接情况等信息。如果没有处理它们,是不会通过Apple的审查的。Apple的例程Reachability中介绍了取得/检测网络状态的方法。1.在你的程序中使用Reachability只须将该例程中的Reachability.h和Reachabilit... 阅读全文
posted @ 2013-07-05 14:17 wangzhipeng 阅读(9643) 评论(0) 推荐(1) 编辑
摘要:最近在研究IOS视频播放器,需要使用到ffmpeg4ios,所以整理编译过程。需要使用到Git,Linux Shell脚本执行install-ffmpeg.sh即可。下述Linux Shell脚本下载地址:http://ishare.iask.sina.com.cn/f/37135883.htmlinstall-ffmpeg.shSRCDIR=`pwd`VERSION="1.2.1"echo "install gas-* perl script"./install-gas.shecho "download ffmpeg"set -ei 阅读全文
posted @ 2013-05-28 12:54 wangzhipeng 阅读(7133) 评论(2) 推荐(1) 编辑
摘要:显示Excel我就不介绍了,大多人都知道使用UIWebView控件即可,所以直接上代码//// ViewController.m// PRJ_excelDemo//// Created by wangzhipeng on 13-4-12.// Copyright (c) 2013年 com.comsoft. All rights reserved.//#import "ViewController.h"@interface ViewController ()@property (strong, nonatomic) IBOutlet UIWebView *pWV_main; 阅读全文
posted @ 2013-04-15 11:31 wangzhipeng 阅读(18640) 评论(4) 推荐(4) 编辑
摘要:UIImage+wiRoundedRectImage.h#import <UIKit/UIKit.h>@interface UIImage (wiRoundedRectImage)+ (id)createRoundedRectImage:(UIImage*)image size:(CGSize)size radius:(NSInteger)r;@endUIImage+wiRoundedRectImage.m#import "UIImage+wiRoundedRectImage.h"@implementation UIImage (wiRoundedRectIma 阅读全文
posted @ 2013-02-20 14:14 wangzhipeng 阅读(10357) 评论(2) 推荐(0) 编辑
摘要:先上图,没图没真相下拉刷新效果使用第三方类库ODRefreshControl例子目录结构:Resources 资源文件夹ThirdPartLib 第三方类库文件夹直接上核心调用代码,一共只有六句,简单好用。设置下拉刷新的位置V_animateIndicator *v = [[V_animateIndicator alloc] initWithFrame:CGRectMake(0.f, 0.f, 20.f, 20.f)];ODRefreshControl *refreshControl = [[ODRefreshControl alloc] initInScrollView:self.... 阅读全文
posted @ 2012-11-27 22:15 wangzhipeng 阅读(2923) 评论(0) 推荐(1) 编辑