NSOperation 依赖关系,就像你和女友,互相需要对方一样。非常有意思。
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super
viewDidLoa...
分类:
移动开发 时间:
2015-04-15 23:26:53
阅读次数:
166
1 协议,就是class里面必须遵循的约定。例如@protocol viewControllerDelegate -(void)loadMoreData;@end@interface ViewController ()@property (weak, nonatomic) IBOutlet UITa...
分类:
其他好文 时间:
2015-04-15 21:12:05
阅读次数:
116
//
// ViewController.m
// 表情排列
//
// Created by on 15/4/15.
// Copyright (c) 2015年 apple. All rights reserved.
//
#import "ViewController.h"
#define kImageWidth 40
@interface ViewContr...
分类:
移动开发 时间:
2015-04-15 19:44:20
阅读次数:
187
流程age:饭前洗手----》 吃饭 ---》饭后洗碗//吃饭public interface Dinner { //吃饭方法 public void haveDinner();} //委托类public class MyDinner implements Dinner { @Override p....
分类:
编程语言 时间:
2015-04-15 19:05:19
阅读次数:
183
前面了解了手势识别的点击以及代理方法,其他的几个手势识别都是差不多#import "ViewController.h"@interface ViewController ()@property(nonatomic,strong)UIImageView *imgView;@end@implementa...
分类:
其他好文 时间:
2015-04-15 16:58:01
阅读次数:
184
一切的开始: SAPI接口SAPI(Server Application Programming Interface)指的是PHP具体应用的编程接口, 就像PC一样,无论安装哪些操作系统,只要满足了PC的接口规范都可以在PC上正常运行, PHP脚本要执行有很多种方式,通过Web服务器,或者直接在命令...
分类:
其他好文 时间:
2015-04-15 16:47:31
阅读次数:
168
KVC 是key,value,coding的缩写,即键值编码。在iOS中,可以通过类的属性的名称(key),来间接访问对象的属性信息。
建一个工程,创建一个zzPerson类,它有两个属性,name和address。
zzPerson.h:
#import
@interface zzPerson : NSObject
{
NSString * name,addre...
分类:
其他好文 时间:
2015-04-15 13:38:26
阅读次数:
115
#import "ViewController.h"@interface ViewController ()@property(nonatomic,strong)UIImageView *ImgView;@end@implementation ViewController- (void)viewDi...
分类:
其他好文 时间:
2015-04-15 13:06:16
阅读次数:
186
About Asset CatalogsUse asset catalogs to simplify management of images that are used by your app as part of its user interface.使用asset catalogs可以简化应用...
分类:
其他好文 时间:
2015-04-15 13:00:35
阅读次数:
125
子类化UIAlertView,复写方法
- (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated;
/// UIAlertView subclass which can't be dismissed when buttons clicked.
@interface Fix...
分类:
其他好文 时间:
2015-04-15 11:22:38
阅读次数:
146