#import @interface Student : NSObject{ int _age; char *_name;}- (void) study;- (void) run;+ (void) play;+ (void) run;@end@implementation Student...
分类:
其他好文 时间:
2015-05-12 13:28:41
阅读次数:
115
#import "AppDelegate.h"#import "ViewController.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)applicat...
分类:
其他好文 时间:
2015-05-12 10:53:00
阅读次数:
112
#import "QFAppDelegate.h"@implementation QFAppDelegate//最后一个执行的初始化函数//主要做一些启动之前的初始化操作- (BOOL)application:(UIApplication *)application didFinishLaunchi...
分类:
其他好文 时间:
2015-05-12 01:32:34
阅读次数:
98
1 @interface ViewController () 2 @property(nonatomic,copy)NSString *action; 3 @property(nonatomic,copy)NSString *rule; 4 @end 5 6 @implementation Vi.....
分类:
其他好文 时间:
2015-05-11 20:00:53
阅读次数:
86
@implementation MySingleton+ (instancetype)sharedInstance{ static MySingleton* instance = nil; static dispatch_once_t onceToken; dispatch_on...
分类:
编程语言 时间:
2015-05-11 17:27:37
阅读次数:
251
黑马程序员------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------1 分类分类的语法格式为:1、分类的声明:@interface 类名 (分类名称)// 方法声明@end2、分类的实现:@implementation 类名 (分类名称)// 方法实现@....
分类:
编程语言 时间:
2015-05-10 22:11:44
阅读次数:
143
1.oc简介C语言的基础上,增加了一层最小的面向对象语法完全兼容C语言可以在OC代码中混入C语言代码,甚至是C++代码可以使用OC开发Mac OS X平台和iOS平台的应用程序2.oc语法关键字@interface类的声明、@implementation类的实现、@end结束@public公有、@p...
分类:
其他好文 时间:
2015-05-10 17:09:13
阅读次数:
198
以下是完整代码: /*
?*?this?file?if?an?implementation?of?stack?with?array?list
?*?file?name:?ArrayStack.c
?*?author:?John?Woods
?*?date:?2015/5/10
?*?statement:?anyone?can...
分类:
编程语言 时间:
2015-05-10 13:04:18
阅读次数:
196
---------------------------------------------------js+xml---------------------------------------------------------------------------
DOM2级在 document.implementation 中引入了 createDocument()
方法。 IE9+、 Fi...
分类:
Web程序 时间:
2015-05-10 09:45:00
阅读次数:
205
OC方法: 1.OC方法必须以 - 开头 2.OC方法的定义包括声明和实现两部分,声明必须在@interface @end之间,实现必须在@implementation @end之间 3.OC方法只能有类的对象/实例方法 4.OC方法仅归类/类的对象所有函数:1.函数能写在文件的 任何位置(一般除了...
分类:
其他好文 时间:
2015-05-09 23:18:17
阅读次数:
134