//// ViewController.m// 多线程////#import "ViewController.h"@interface ViewController ()@end@implementation ViewController/* >1 队列和线程的区别: 队列:是管理线程的,相当于.....
分类:
编程语言 时间:
2016-01-26 23:35:44
阅读次数:
324
OC中设计一个类的步骤:一、声明类: 1.用到的关键字--@interface 和 @end 2.类名 3.继承NSObject 4.属性 5.方法(行为,只需要声明)二、实现(定义)类 1.用到的关键字--@implementation 和 @end 2.实现@interface中声...
分类:
其他好文 时间:
2016-01-26 18:13:39
阅读次数:
167
在Xaml中,说到绑定,我们用的最多的应该就是ICommand了,通过Command实现ViewModel到View之间的命令处理,例如Button默认就提供了Command支持,如下Xaml: ViewModel /// Provides a base implementation o...
分类:
其他好文 时间:
2016-01-26 16:35:14
阅读次数:
224
一,效果图。二,工程图。三,代码。RootViewController.m#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (id)initWit...
分类:
其他好文 时间:
2016-01-26 10:36:34
阅读次数:
168
1 @implementation HMViewController 2 3 - (void)viewDidLoad 4 { 5 [super viewDidLoad]; 6 7 [self performSelectorInBackground:@sel...
分类:
移动开发 时间:
2016-01-25 17:03:01
阅读次数:
250
代码:RootViewController.m#import "RootViewController.h"#import @interface RootViewController ()@end@implementation RootViewController- (id)initWithNibNa...
分类:
其他好文 时间:
2016-01-25 09:56:57
阅读次数:
155
创建一个测试的UIButton#import "ViewController.h"@interface ViewController ()@property(nonatomic, strong)UIButton *button;@end@implementation ViewController- ...
分类:
其他好文 时间:
2016-01-25 00:03:23
阅读次数:
387
OC中类的定义与使用跟C#和java差别相当明显,做个笔记,牢记并加以区别!一、OC中类的定义:关键字@implementation 和 @end注意事项:1.定义好一个类之后,要让这个类继承NSObject这个类--是为了让自己定义的类能够具备创造对象的能力2.继承NSObject后还不算完,NS...
分类:
其他好文 时间:
2016-01-24 16:51:08
阅读次数:
144
错误信息:Caused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location] at org.apache.struts2.config.AbstractBeanSelectionP...
分类:
编程语言 时间:
2016-01-23 17:57:59
阅读次数:
290
1 @implementation NJView 2 3 /* 4 -(void)awakeFromNib 5 { 6 7 NSLog(@"awakeFromNib"); 8 // 创建CADisplayLink, 默认每秒60次 9 CADisplayLink *di...
分类:
移动开发 时间:
2016-01-23 01:10:37
阅读次数:
216