oc
fire1986
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
类是抽象的,并不是具体的指某一事物,而是泛指某一类事物。
类是抽象的,并不是具体的指某一事物,而是泛指某一类事物。 @class myClass; myClass *stu; :是方法名的一部分 oc中定义的方法都是公有方法 所有的object-c的对象都是在堆上创建的原创 2012-04-08 10:21:41 · 2132 阅读 · 0 评论 -
1.5.1类接口(@interface)语法格式
1.5.1类接口(@interface)语法格式 @interface 类名:父类名{ 变量定义; } 方法定义; @end 例子:类名为Member的接口例子 #import @interface Member:NSObject { NSString* name; int age; } - (NS原创 2012-04-08 10:24:01 · 557 阅读 · 0 评论 -
FengShu.m,,FengShu.h
// FengShu.m #import "FengShu.h" @implementation FengShu @synthesize a; -(void)setB:(NSInteger)_b //设置器 { if(_b==0) { _b=1; } else{ b=_b; }原创 2012-04-08 10:23:15 · 469 阅读 · 0 评论 -
1.5.2类实现(@implementation)
1.5.2类实现(@implementation) @implementation 类名 方法实现代码; @end 例子:Member的接口实现 @implementation Member //@synthesize age=_age; - (int) age { return age; } - (void) set原创 2012-04-08 10:24:28 · 659 阅读 · 0 评论 -
数组指针,指针数组 矩阵 的加减乘除(线性代数)
数组指针,指针数组 矩阵 的加减乘除(线性代数) int i =10, j=20; int *tmp,*p,*q; p=&i; q=&j; tmp=p; p=q; q=tmp; NSLog(@"%p,%p,%p",p,q,tmp); // NSL原创 2012-04-08 10:22:44 · 1223 阅读 · 0 评论 -
scene, segue, relationship
A scene represents an onscreen content area that is managed by a view controller. A view controller is an object that manages a set of views that are responsible for drawing content onscreen. A segue原创 2012-04-08 10:26:03 · 618 阅读 · 0 评论 -
fengshu.h,fengshu.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Person *p =[[Person alloc] init]; FengShu *f1 =[[FengShu alloc] initWithA:4原创 2012-04-08 10:25:28 · 456 阅读 · 0 评论
分享