———Java培训、Android培训、iOS培训、.Net培训、期待与您交流! ———1、父类必须写在子类之前 1 #import 2 @interface Student : Person 3 @end 4 5 @implementation Student 6 @end 7 8 @int...
分类:
其他好文 时间:
2014-09-29 12:11:40
阅读次数:
257
———Java培训、Android培训、iOS培训、.Net培训、期待与您交流! ———方法与函数的区别1、方法: 1、对象方法都是以减号 - 开头 2、对象方法的声明必须写在@interface @end之间 3、对象方法的实现必须写在@implementation @end 之间 4、...
分类:
其他好文 时间:
2014-09-27 22:47:30
阅读次数:
204
//
//??ViewController.m
//??OC-Design
//
//??Created?by?葛迅?on?14/9/25.
//
//
#import?"ViewController.h"
@interface?ViewController?()
@end
@implementation?ViewController
-?(vo...
分类:
其他好文 时间:
2014-09-25 23:50:18
阅读次数:
289
@interface ZXViewController ()@property (nonatomic, strong) NSProgress *pro;- (IBAction)btnOnClick:(id)sender;@end@implementation ZXViewController- (v...
分类:
移动开发 时间:
2014-09-25 19:24:47
阅读次数:
220
书籍推荐(转自豆瓣)一、软件project师--Clean Code《代码整洁之道》--Implementation Patterns《实现模式》--Code Complete《代码大全》--Refactoring: Improving the Design of Existing Code《重构—...
分类:
其他好文 时间:
2014-09-25 19:15:17
阅读次数:
256
OverViewHash table based implementation of theMapinterface. This implementation provides all of the optional map operations, and permitsnullvalues and...
分类:
其他好文 时间:
2014-09-25 00:04:27
阅读次数:
295
//实现CarParts//实现CarParts#import@interface Tire : NSObject@end@implementation Tire-(NSString *)description{ return (@"I am a tire.I last a while.");...
分类:
其他好文 时间:
2014-09-24 23:17:57
阅读次数:
162
from:https://developer.nvidia.com/mvapichMVAPICH2 is an open source implementation of Message Passing Interface (MPI) that delivers the best performan...
1、创建一个drawboard#import "DrawBoard1.h"@implementation DrawBoard1-(void)drawRect:(CGRect)rect{ CGContextRef context=UIGraphicsGetCurrentContext(); CGC.....
分类:
其他好文 时间:
2014-09-23 01:29:23
阅读次数:
360
1.定义类的属性时,不能够初始化成员变量2.不能够嵌套定义类3.oc中的方法和c语言中函数的区别a.方法的实现只能写在@implementation和@end中b.对象方法都是以“-”开头c.对象方法的声明只能写在@interface和@end之间,函数写在任何位置d.对象方法只能由对象调用,不能像...
分类:
其他好文 时间:
2014-09-21 23:00:21
阅读次数:
177