摘要: 调用更新接口返回字段: result = { descr = ""; isupdate = 1;//是否更新 qzupdate = 0;//是否强制更新 updateurl = "http://www.baidu.com";//更新地址 versioncode = "2.0";//版本号 }; 根据 阅读全文
posted @ 2019-01-03 18:07 小、 阅读(4959) 评论(0) 推荐(0) 编辑
摘要: NSNumber 所有的[NSNumber numberWith…:]方法都可以简写了: [NSNumber numberWithChar:‘X’] 简写为 @‘X’; [NSNumber numberWithInt:12345] 简写为 @12345 [NSNumber numberWithUns 阅读全文
posted @ 2019-01-03 18:05 小、 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 记录于2013/10/26 基本步骤: 1、将Excel表格另存为.csv格式 2、用类似TextWrangler工具将.csv文件转成UTF-8格式 3、使用火狐插件SQLite Manager新建数据库,导入.csv文件(注意命名,最好是全英文) 4、代码中读取数据库文件(可使用类似FMDB第三 阅读全文
posted @ 2019-01-03 18:03 小、 阅读(455) 评论(0) 推荐(0) 编辑
摘要: UIImage的 + (UIImage *)imageWithCGImage:(CGImageRef)cgImage scale:(CGFloat)scale orientation:(UIImageOrientation)orientation方法 阅读全文
posted @ 2019-01-03 18:00 小、 阅读(918) 评论(0) 推荐(0) 编辑
摘要: 记录于2013/6/26: 一.点击键盘上的“Done”按钮关闭键盘 1.视图控制器实现UITextFieldDelegate协议 2.设置文本框属性 textField.returnKeyType = UIReturnKeyDone; textField.delegate=self; 3. 重写协 阅读全文
posted @ 2019-01-03 17:56 小、 阅读(1229) 评论(0) 推荐(0) 编辑
摘要: 一、检测捏合手势( UIPinchGestureRecognizer): //设定一个实例变量存储手指之间的其起始距离 @property (assign, nonatomic) CGFloat initialFontSize; //调用: UIPinchGestureRecognizer *pin 阅读全文
posted @ 2019-01-03 17:54 小、 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 报错: Setting up CocoaPods master repo [!] /usr/bin/git clone 'https://github.com/CocoaPods/Specs.git' master --depth=1 fatal: could not create work tre 阅读全文
posted @ 2019-01-03 17:47 小、 阅读(741) 评论(0) 推荐(0) 编辑
摘要: 一、前期准备: 1.安装Node(必须):前往Node.js官网:https://nodejs.org/en/download/下载最新版本pkg软件,点击安装即可。 2.安装Git(必须):安装Xcode就自带有Git。 3.申请GitHub(必须):可配置SSH Keys,不配置也可以就是每次改 阅读全文
posted @ 2019-01-03 17:39 小、 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 查找问题地址: http://hexo.io/docs/troubleshooting.html 1.通过npm安装hexo运行命令:sudo npm install -g hexo 出现这个问题: npm ERR! Darwin 15.0.0 npm ERR! argv "/usr/local/b 阅读全文
posted @ 2019-01-03 17:36 小、 阅读(261) 评论(0) 推荐(0) 编辑
摘要: //发送邮件 -(void)sendMail:(NSString*)subject content:(NSString*)content{ MFMailComposeViewController*controller = [[[MFMailComposeViewControlleralloc]init]autorelease]; if([MFMailComposeView... 阅读全文
posted @ 2019-01-03 17:32 小、 阅读(820) 评论(0) 推荐(0) 编辑
摘要: 转自: mac 删除文件夹里所有的.svn文件 想要把SVN專案作轉移或複製時 舊的「.svn」真的是很煩人的東西 最快的方式是用終端機輸入 sudo find /Users/justfly/Documents/workspace/justSVN/ -name ".svn" -exec rm -r 阅读全文
posted @ 2019-01-03 17:28 小、 阅读(629) 评论(0) 推荐(0) 编辑
摘要: 记录于2013/8/5 在切换横竖屏的时候调用到的一些委托方法: #pragma mark - UIApplicationDelegate //写在Appdelegate中,在具体的某一视图控制器没有重写supportedInterfaceOrientations或者shouldAutorotate 阅读全文
posted @ 2019-01-03 17:26 小、 阅读(240) 评论(0) 推荐(0) 编辑
摘要: CAGradientLayer使用: CAGradientLayer*gradient = [CAGradientLayerlayer]; gradient.frame = subLayer.frame; gradient.colors = [NSArrayarrayWithObjects:(id) 阅读全文
posted @ 2019-01-03 17:24 小、 阅读(741) 评论(0) 推荐(0) 编辑
摘要: 使用Block替代回调,分为三步进行: <!--?xml version="1.0" encoding="UTF-8"?--> 也可以不声明类型,直接使用即可: 记录于2013/4/7 阅读全文
posted @ 2019-01-03 17:17 小、 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 记录于2013/7/4 加入框架: MobileCoreServices.framework MediaPlayer.framework 导入头文件: #import <MediaPlayer/MediaPlayer.h> #import <MobileCoreServices/UTCoreType 阅读全文
posted @ 2019-01-03 17:08 小、 阅读(785) 评论(1) 推荐(0) 编辑
摘要: 记录于2013/4/23: 关于HeaderDoc注释和标签的简要介绍 每个HeaderDoc注释可分为顶级标签和第二级标签: (1)顶级标签:宣布API的声明类型 (function, struct, enum, 等等),是可选择的。 也可为空 (2)第二级标签:给予声明的额外信息 如@abstr 阅读全文
posted @ 2019-01-03 17:06 小、 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 记录于:2013/4/24 GitHub(网址 https://github.com/)是一个面向开源及私有软件项目的托管平台,因为只支持Git作为唯一的版本库格式进行托管,故名GitHub。 GotGitHub内容:http://www.worldhello.net/gotgithub/ GitH 阅读全文
posted @ 2019-01-03 17:03 小、 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1.动画旋转: 3、 阅读全文
posted @ 2019-01-03 16:59 小、 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 有时需要将一些表示“空”的对象添加到array中。NSNull类正是基于这样的目的产生的。用NSNull表示一个占位符时,语句表达如下: [array addObject:[NSNull null]]; 下面是关于数组中空值的判断测试程序 id aValue = [arrayWithNull obj 阅读全文
posted @ 2019-01-03 16:54 小、 阅读(832) 评论(0) 推荐(0) 编辑
摘要: 2013/4/15整理: 将整数转换成字符串 Convert Integer to NSString: 方法一: int Value = 112233; NSString *ValueString = [NSString stringWithFormat:@"%d", Value]; 方法二: [[ 阅读全文
posted @ 2019-01-03 16:53 小、 阅读(1943) 评论(0) 推荐(0) 编辑