码迷,mamicode.com
首页 >  
搜索关键字:implementation    ( 1803个结果
Xcode6编译SDWebImage报错解决方法(SDWebImageDownloaderOperation.m错误)
报错:Use of undeclared identifier '_executing' / '_finished';解决方法:在SDWebImageDownloaderOperation类的实现中(@implementation里)添加:1 @synthesize executing = _exe...
分类:Web程序   时间:2014-09-21 22:43:01    阅读次数:1443
scrollview 例子2
代码:#import "RootViewController.h"@implementation RootViewController@synthesize scrollView;- (void)viewDidLoad{ [super viewDidLoad]; // Do any ad...
分类:其他好文   时间:2014-09-21 18:22:30    阅读次数:221
Xcode6编译SDWebImage报错解决方法(SDWebImageDownloaderOperation.m错误)
报错:Use of undeclared identifier '_executing' / '_finished';解决方法:在SDWebImageDownloaderOperation类的实现中(@implementation里)添加:@synthesize executing = _executing ; @synthesize finished = _finished;即可。...
分类:Web程序   时间:2014-09-20 20:34:27    阅读次数:249
iOS 如何创建单例
// YOURCLASSNAME.h @interface YOURCLASSNAME : NSObject +(instancetype) sharedInstance; @end // YOURCLASSNAME.m @implementation YOURCLASSNAME + (instancetype)sharedXXX { static YOURCLASSN...
分类:移动开发   时间:2014-09-20 17:39:49    阅读次数:229
ios 自定义tabbar
.h文件:#import @interface YLYTabBar : UIView@end.m文件#import "YLYTabBar.h"@implementation YLYTabBar- (id)initWithFrame:(CGRect)frame{ self = [super in...
分类:移动开发   时间:2014-09-20 14:56:58    阅读次数:230
Objective-C:03_面向对象-类和对象
OC中只能使用指针变量来间接操作对象类的声明使用的关键字是@interface@interface 类名@end结尾的@end表示类声明结束类的实现使用的关键字是@implementation@implementation类名@end结尾需要加上@end,告诉编译器类实现完毕/* 类名:Car .....
分类:其他好文   时间:2014-09-19 18:53:15    阅读次数:162
OC通知中心
//通知中心广播站建立 //1.head.h #import<Foundation/Foundation.h> @interfaceBJBroadcast:NSObject -(void)sendBroadCast; -(void)sendBroadCastLoop; @end //2.implementation #import"BJBroadcast.h" @implementationBJBroadcast -(void)sendBroadCastLoop { //..
分类:其他好文   时间:2014-09-19 12:17:16    阅读次数:252
Efficient ticket lock synchronization implementation using early wakeup in the presence of oversubscription
A turn-oriented thread and/or process synchronization facility obtains a ticket value from a monotonically increasing ticket counter and waits until a...
分类:其他好文   时间:2014-09-18 00:32:33    阅读次数:343
simple factory, factory method, abstract factory
simple factorygood:1 devide implementation and initialization2 use config file can make system more flexible (reflection)bad:1 all initialization work...
分类:其他好文   时间:2014-09-17 20:25:32    阅读次数:246
通过当前view得到所在的viewcontroller
1 @implementation UIView (GetVCAdditions) 2 3 - (UIViewController *)GetiewController { 4 Class vcc = [UIViewController class]; 5 UIResponder...
分类:其他好文   时间:2014-09-16 18:40:30    阅读次数:226
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!