#import <AVFoundation/AVFoundation.h> @interface ViewController () @property(nonatomic,strong)AVAudioPlayer *player; @end @implementation ViewControll
分类:
移动开发 时间:
2016-02-29 21:30:53
阅读次数:
219
一、死循环(self.view为nil) @implementation ViewController - (void)loadView{ NSLog(@"loadView......."); } - (void)viewDidLoad { [super viewDidLoad]; NSLog(@"
分类:
其他好文 时间:
2016-02-29 14:08:32
阅读次数:
212
关于reference collapsing,可以看这个链接。(里面也讲了std::forward()和std::move()的实现) http://thbecker.net/articles/rvalue_references/section_08.html 需要注意的是,在做auto-type
分类:
其他好文 时间:
2016-02-29 01:57:49
阅读次数:
115
一、控制器的生命周期 代码 1 @interface NJOneViewController () 2 3 @property (nonatomic, strong) NSArray *foods; 4 @end 5 6 @implementation NJOneViewController 7 8
分类:
移动开发 时间:
2016-02-25 22:40:14
阅读次数:
247
1 #import "ViewController.h" 2 3 int age = 18; 4 typedef int(^MaxBlock)(int,int); 5 @interface ViewController () 6 7 @end 8 9 @implementation ViewCont
分类:
其他好文 时间:
2016-02-25 21:06:30
阅读次数:
191
@interface NSString (MyExtensions) - (NSString *) md5; @end @implementation NSString (MyExtensions) - (NSString *) md5 { const char *cStr = [self UTF8
分类:
其他好文 时间:
2016-02-25 00:27:00
阅读次数:
125
1 #import "AppDelegate.h" 2 #import "RootViewController.h" 3 @interface AppDelegate () 4 5 @end 6 7 @implementation AppDelegate 8 9 10 - (BOOL)applica
分类:
其他好文 时间:
2016-02-24 22:45:09
阅读次数:
308
原文:https://nikic.github.io/2012/03/28/Understanding-PHPs-internal-array-implementation.html 欢迎来到”给PHP开发者的PHP源码”系列的第四部分,这一部分我们会谈论PHP数组在内部是如何表示和在代码库里使用...
分类:
编程语言 时间:
2016-02-24 19:28:13
阅读次数:
271
#import "ViewController.h" @interface ViewController () { UIImageView *imgView; int x; int y; } @end @implementation ViewController - (void)viewDidLoa
分类:
其他好文 时间:
2016-02-24 12:39:36
阅读次数:
171
Hacking Strings The implementation of Redis strings is contained in sds.c ( sds stands for Simple Dynamic Strings ).The C structure sdshdr declared in
分类:
其他好文 时间:
2016-02-24 09:21:41
阅读次数:
245