码迷,mamicode.com
首页 >  
搜索关键字:implementation    ( 1803个结果
第一篇:NSTread线程的创建
#import "ViewController.h"//导入头文件#import @interfaceViewController ()@end@implementation ViewController- (void)viewDidLoad{ [superviewDidLoad]; [self.....
分类:编程语言   时间:2015-09-24 19:02:21    阅读次数:153
本地推送
第一步在AppDelegate.h进行设置#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application d...
分类:其他好文   时间:2015-09-24 16:35:02    阅读次数:155
基本XML解析---编写
#import "ViewController.h"#import "DDXML.h"@interface ViewController ()@end@implementation ViewController/*解析XML:开源框架:KissXML 依赖:libxml2.2.dylib(项目配置-...
分类:其他好文   时间:2015-09-24 09:23:44    阅读次数:172
条款38:通过复合塑模has-a或“根据某物实现出”
NOTE: 1.复合(composition)的意义和public继承完全不同。 2.在应用域(application domain),复合意味 has-a(有一个)。 在实现域(implementation domain),复合意味is-implemented-in-terms...
分类:其他好文   时间:2015-09-23 23:10:13    阅读次数:165
传感器 -UIAccelerometer
// ios 4 之前 UIAccelerometer// ios 5 #import "ViewController.h"//#import @interface ViewController ()@end@implementation ViewController- (void)viewDidL...
分类:其他好文   时间:2015-09-23 20:59:24    阅读次数:167
什么么是Category
什么是CategoryCategory有很多种翻译:分类\类别\类目(一般叫分类)Category是OC特有的语法,其他语言没有的语法Category的作用可以在不修改原来类的基础上,为这个类扩充一些方法书写格式声明@interface 类名(分类名称)@end实现@implementation类名...
分类:其他好文   时间:2015-09-23 13:13:41    阅读次数:214
NSFetchedResultController与UITableView
1 #import "AppDelegate.h" 2 #import "Book.h" 3 @interface AppDelegate () 4 @end 5 @implementation AppDelegate 6 -(void)addBookWithTitle:(NSString *)t....
分类:其他好文   时间:2015-09-22 18:43:48    阅读次数:157
碎片化知识整理
@property (strong,nonatomic)NSMutableArray *cards;@end@implementation Deck-(NSMutableArray *)cards{ if (!_cards){_cards=[[NSMutableArray alloc]init];....
分类:其他好文   时间:2015-09-22 01:23:50    阅读次数:255
@import vs #import - iOS 7
It‘s a new feature called Modules or "semantic import". There‘s more info in the?WWDC 2013?Session 205 & 404 videos. It‘s kind of a better implementation of the pre-compiled headers. You can use...
分类:移动开发   时间:2015-09-20 20:54:57    阅读次数:420
模拟创建类变量,static变量加类方法,单例
@interface Model+ (int) value;+ (void) setValue:(int)val;@end@implementation Modelstatic int value;+ (int) value{ @synchronized(self) { return value; ...
分类:其他好文   时间:2015-09-19 22:40:55    阅读次数:204
1803条   上一页 1 ... 90 91 92 93 94 ... 181 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!