报错:Use of undeclared identifier '_executing' / '_finished';解决方法:在SDWebImageDownloaderOperation类的实现中(@implementation里)添加:1 @synthesize executing = _exe...
分类:
Web程序 时间:
2014-09-21 22:43:01
阅读次数:
1443
代码:#import "RootViewController.h"@implementation RootViewController@synthesize scrollView;- (void)viewDidLoad{ [super viewDidLoad]; // Do any ad...
分类:
其他好文 时间:
2014-09-21 18:22:30
阅读次数:
221
报错:Use of undeclared identifier '_executing' / '_finished';解决方法:在SDWebImageDownloaderOperation类的实现中(@implementation里)添加:@synthesize executing = _executing ;
@synthesize finished = _finished;即可。...
分类:
Web程序 时间:
2014-09-20 20:34:27
阅读次数:
249
// YOURCLASSNAME.h
@interface YOURCLASSNAME : NSObject
+(instancetype) sharedInstance;
@end
// YOURCLASSNAME.m
@implementation YOURCLASSNAME
+ (instancetype)sharedXXX {
static YOURCLASSN...
分类:
移动开发 时间:
2014-09-20 17:39:49
阅读次数:
229
.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
OC中只能使用指针变量来间接操作对象类的声明使用的关键字是@interface@interface 类名@end结尾的@end表示类声明结束类的实现使用的关键字是@implementation@implementation类名@end结尾需要加上@end,告诉编译器类实现完毕/* 类名:Car .....
分类:
其他好文 时间:
2014-09-19 18:53:15
阅读次数:
162
//通知中心广播站建立
//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
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 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
1 @implementation UIView (GetVCAdditions) 2 3 - (UIViewController *)GetiewController { 4 Class vcc = [UIViewController class]; 5 UIResponder...
分类:
其他好文 时间:
2014-09-16 18:40:30
阅读次数:
226