码迷,mamicode.com
首页 >  
搜索关键字:implementation    ( 1803个结果
JNDI-j2ee
Database Connection Pool (DBCP) ConfigurationsThe default database connection pool implementation in Apache Tomcat relies on the libraries from theApa...
分类:其他好文   时间:2015-08-11 07:03:09    阅读次数:201
【Objective-C】02.第一个OC语言类
02.第一个OC语言类在java语言中,创建一个类只需要一个文件,而在oc语言中,创建一个类需要两个文件.m文件和.h文件。.h文件是声明类,用来声明成员变量和方法。用关键词@interface来修饰,以@end结尾。.m文件是实现类,用来实现成员变量和方法,用关键词@implementation来...
分类:编程语言   时间:2015-08-10 17:56:23    阅读次数:137
post NSURLConnection请求网络数据
#import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; [sel...
分类:Web程序   时间:2015-08-10 16:10:09    阅读次数:163
NSURLConnection 异步加载网络数据
#import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; //[self...
分类:Web程序   时间:2015-08-10 16:07:34    阅读次数:125
OC面向对象—封装
一、面向对象和封装面向对象的三大特性:封装(成员变量)、继承和多态在OC语言中,使用@interface和@implementation来处理类。@interface就好像暴露在外面的时钟表面,像外界提供展示以及接口。@implementation就好像隐藏在时钟内部的构造实现,把具体的实现封装了起...
分类:其他好文   时间:2015-08-09 20:24:18    阅读次数:97
OC语言--self关键字
OC中的self既可以用在动态方法中,也可以用在静态方法中1.self在动态方法中 1 @implementation Student 2 3 - (void)test2 { 4 5 } 6 7 - (void)test3 { 8 [self test2]; 9 }10 11 @end...
分类:编程语言   时间:2015-08-09 20:20:35    阅读次数:161
Objective-C Autorelease Pool 的实现原理[转]
http://blog.leichunfeng.com/blog/2015/05/31/objective-c-autorelease-pool-implementation-principle/内存管理一直是学习 Objective-C 的重点和难点之一,尽管现在已经是 ARC 时代了,但是了解 ...
分类:其他好文   时间:2015-08-09 07:12:20    阅读次数:290
iOS NSOperation 封装 通知实现界面更新
#import #import @interface MYOperation : NSOperation @end#import "MYOperation.h" @implementation MYOperation -(void)main { //不管是ARC还是MRC一定要用autor...
分类:移动开发   时间:2015-08-08 19:53:10    阅读次数:108
iOS ARC 下的单例模式
#import @interface RYSingleExample : NSObject +(instancetype)singleExample; @end#import "RYSingleExample.h" static id _single; @implementation RYS...
分类:移动开发   时间:2015-08-08 19:43:40    阅读次数:121
自定义View画一条线
#import "PublishContextView.h"@implementation PublishContextView-(void)drawRect:(CGRect)rect{ [super drawRect:rect]; CGContextRef context=UIGrap...
分类:其他好文   时间:2015-08-08 19:38:07    阅读次数:115
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!