随笔分类 -  IOS

摘要:1、检出svn co http://路径(目录或文件的全路径) [本地目录全路径] --username 用户名 --password 密码svn co svn://路径(目录或文件的全路径) [本地目录全路径] --username 用户名 --password 密码svn check... 阅读全文
posted @ 2015-10-15 17:23 sirzhang 阅读(365) 评论(0) 推荐(0)
摘要:NSTimer在IOS开发中会经常用到,尤其是小型游戏,然而对于初学者时常会注意不到其中的内存释放问题,将其基本用法总结如下:一、初始化方法:有五种初始化方法,分别是+ (NSTimer *)timerWithTimeInterval:(NSTimeInterval)ti invocation:(N... 阅读全文
posted @ 2015-09-08 10:49 sirzhang 阅读(751) 评论(0) 推荐(0)
摘要:目录[-]IOS中图片拉伸技巧与方法总结一、了解几个图像拉伸的函数和方法1、直接拉伸法2、像素点的拉伸3、区域的拉伸4、拉伸模式的设置二、拉伸的用武之地三、一点小经验IOS中图片拉伸技巧与方法总结一、了解几个图像拉伸的函数和方法1、直接拉伸法简单暴力,却是最最常用的方法,直接将图片设置为ImageV... 阅读全文
posted @ 2015-09-07 16:41 sirzhang 阅读(497) 评论(0) 推荐(0)
摘要:目录[-]使用位运算设计可复选的枚举一、枚举使用的一个小例子二、枚举到底是个什么东西三、可复选的枚举属性使用位运算设计可复选的枚举一、枚举使用的一个小例子在软件开发中,枚举是我们会经常会用到的一种编程方式,通过枚举,可以使我们的代码更具可读性与统一性。通常情况下,我们会通过typedef来定义一种枚... 阅读全文
posted @ 2015-09-07 15:48 sirzhang 阅读(181) 评论(0) 推荐(0)
摘要:一、什么是库?库是共享程序代码的方式,一般分为静态库和动态库。静态库:链接时完整地拷贝至可执行文件中,被多次使用就有多份冗余拷贝。动态库:链接时不复制,程序运行时由系统动态加载到内存,供程序调用,系统只加载一次,多个程序共用,节省内存。三、iOS里静态库形式?.a和.framework四、iOS里动... 阅读全文
posted @ 2015-09-07 15:25 sirzhang 阅读(1442) 评论(0) 推荐(0)
摘要:在手机应用程序开发中,为了减少与服务端的交互次数,加快用户的响应速度,一般都会在iOS设备中加一个缓存的机制,前面一篇文章介绍了iOS设备的内存缓存,这篇文章将设计一个本地缓存的机制。功能需求这个缓存机制满足下面这些功能。1、可以将数据缓存到本地磁盘。2、可以判断一个资源是否已经被缓存。如果已经被缓... 阅读全文
posted @ 2015-09-02 20:57 sirzhang 阅读(484) 评论(0) 推荐(0)
摘要:在Windows时代,大家肯定对SendMessage,PostMessage,GetMessage有所了解,这些都是windows中的消息处理函数,那对应在ios中是什么呢,其实就是NSRunloop这个东西。在ios中,所有消息都会被添加到NSRunloop中,分为‘input source’跟... 阅读全文
posted @ 2015-09-02 14:34 sirzhang 阅读(240) 评论(0) 推荐(0)
摘要:// DBManager.h// DB//// Created by qianfeng on 15/7/22.// Copyright (c) 2015年 张国锋. All rights reserved.//#import #import "UserModel.h"@interface D... 阅读全文
posted @ 2015-08-02 17:28 sirzhang 阅读(241) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/ios/20141111/10190.html 阅读全文
posted @ 2015-08-02 17:07 sirzhang 阅读(178) 评论(0) 推荐(0)
摘要:#import "AppDelegate.h"#import "RootViewController.h"@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWit... 阅读全文
posted @ 2015-08-02 16:47 sirzhang 阅读(186) 评论(0) 推荐(0)
摘要:#import "AppDelegate.h"#import "RootViewController.h"@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWit... 阅读全文
posted @ 2015-08-02 16:34 sirzhang 阅读(386) 评论(0) 推荐(0)
摘要:// Created by 张国锋 on 15-7-23.// Copyright (c) 2014年 张国锋. All rights reserved.//#import "AppDelegate.h"#import "RootViewController.h"@implementatio... 阅读全文
posted @ 2015-08-02 16:23 sirzhang 阅读(989) 评论(0) 推荐(0)
摘要:// HttpManager.h// JsonModel&AFNetWorking//// Created by qianfeng on 15/7/21.// Copyright (c) 2015年 张国锋. All rights reserved.//#import #import "AF... 阅读全文
posted @ 2015-07-21 20:47 sirzhang 阅读(432) 评论(0) 推荐(0)
摘要:// User.h// CoreDataDemo//// Created by gaokunpeng on 15/2/4.// Copyright (c) 2015年 qianfeng. All rights reserved.//#import #import @interface Use... 阅读全文
posted @ 2015-07-21 20:40 sirzhang 阅读(280) 评论(0) 推荐(0)
摘要:// ViewController.h// FirstAFNetWorking//// Created by 张国锋 on 15/7/20.// Copyright (c) 2015年 张国锋. All rights reserved.//#import @interface ViewCon... 阅读全文
posted @ 2015-07-21 20:18 sirzhang 阅读(252) 评论(0) 推荐(0)
摘要:// ProductModel.h// JSONModel//// Created by 张国锋 on 15/7/20.// Copyright (c) 2015年 张国锋. All rights reserved.//#import "JSONModel.h"@interface Prod... 阅读全文
posted @ 2015-07-21 20:03 sirzhang 阅读(378) 评论(0) 推荐(0)
摘要:// StockModel.h// KVO//// Created by 张国锋 on 15/7/20.// Copyright (c) 2015年 张国锋. All rights reserved.//#import @interface StockModel : NSObject@pro... 阅读全文
posted @ 2015-07-21 19:59 sirzhang 阅读(208) 评论(0) 推荐(0)
摘要:// UserModel.h// KVC//// Created by 张国锋 on 15/7/20.// Copyright (c) 2015年 张国锋. All rights reserved.//#import @interface UserModel : NSObject@prope... 阅读全文
posted @ 2015-07-21 19:52 sirzhang 阅读(236) 评论(0) 推荐(0)
摘要:(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath这个代理方法的实现,在可见的页面是会重复绘制页面的,所以绝大部分人都会在这里做一些代码处理比如:s... 阅读全文
posted @ 2015-07-18 19:35 sirzhang 阅读(271) 评论(0) 推荐(0)
摘要:// AppDelegate.m// UI2_异步下载//// Created by zhangxueming on 15/7/17.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#import "AppDelegate... 阅读全文
posted @ 2015-07-17 16:50 sirzhang 阅读(227) 评论(0) 推荐(0)

AmazingCounters.com