#import "ViewController.h"
@interface ViewController ()
@property(nonatomic,weak)IBOutlet UIButton *button;
@property(nonatomic,weak)IBOutlet UIImageView *imageView;
@end
@implementation ViewCo...
分类:
其他好文 时间:
2015-08-29 14:03:17
阅读次数:
121
#import
#import "SubViewController.h"
@interface ViewController : UIViewController
@end
#import "SubViewController.h"
@interface SubViewController ()
@end
@implementation SubViewController
-...
分类:
移动开发 时间:
2015-08-29 00:53:26
阅读次数:
274
制作简单的九宫格: 源码如下: 1 #import "ViewController.h" 2 3 @interface ViewController () 4 5 @end 6 7 @implementation ViewController 8 9 - (void)viewDidLoa...
分类:
其他好文 时间:
2015-08-28 21:26:52
阅读次数:
266
定义:将抽象化(Abstraction)与实现化(Implementation)脱耦,使得二者可以独立地变化。常用场景:在js中,桥接模式常用于事件监听器和ajax请求的解耦,以便于进行单元测试。举个栗子 普通方法。var btn=$('#btn');btn.on('click',functi...
分类:
Web程序 时间:
2015-08-28 17:02:11
阅读次数:
133
@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *...
分类:
移动开发 时间:
2015-08-28 00:33:30
阅读次数:
247
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; /...
分类:
移动开发 时间:
2015-08-27 22:55:01
阅读次数:
228
#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith...
分类:
移动开发 时间:
2015-08-27 22:54:55
阅读次数:
205
#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith...
分类:
移动开发 时间:
2015-08-27 22:52:29
阅读次数:
292
@implementation AppDelegate//当应用程序加载时触发,创建window窗口对象,让对象的window成为程序的主窗口,并且可视.- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOp...
分类:
移动开发 时间:
2015-08-27 22:52:23
阅读次数:
286
响应者链就是当子视图不响应,父视图有响应事件,父视图响应#import "RootViewController.h"#import "ResponderView.h"@interface RootViewController ()@end@implementation RootViewControl...
分类:
移动开发 时间:
2015-08-27 22:45:16
阅读次数:
181