#import "RootViewController.h"#import // 引入@interface RootViewController ()@property (nonatomic,strong)AVPlayer *player;@property (nonatomic,strong)AV...
分类:
其他好文 时间:
2015-11-21 18:20:10
阅读次数:
185
构造类型:数组\枚举\结构体#import //结构体:构造类型,是一种自定义类型.//struct CPoint//struct 是关键字用来声明结构体 后面是结构体的名字 花括号里面的内容叫成员变量//{// float x;// float y;////};// 以分号结尾typedef st...
分类:
编程语言 时间:
2015-11-21 18:18:15
阅读次数:
169
#import /* block要掌握的东西 1> 如何定义block变量 int (^sumBlock)(int, int); void (^myBlock)(); 2> 如何利用block封装代码 ^(int a, int b) { return a - b; }; ^() { ...
分类:
其他好文 时间:
2015-11-21 15:53:51
阅读次数:
182
# -*- coding: utf-8 -*-#python 27#xiaodeng#python模块之HTMLParser抓页面上的所有URL链接import urllib#MyParser类写法一'''from HTMLParser import HTMLParserclass MyParser...
分类:
编程语言 时间:
2015-11-21 15:52:12
阅读次数:
173
# -*- coding: utf-8 -*-#python 27#xiaodeng#python模块之HTMLParser解析出URL链接#http://www.cnblogs.com/mfryf/p/3691563.htmlfrom HTMLParser import HTMLParsercla...
分类:
编程语言 时间:
2015-11-21 15:46:42
阅读次数:
156
// 这是一个UIImage 的分类 ( UIImage+Extension.h )UIImage+Extension.h#import @interface UIImage (Extension)+ (UIImage *)resizableImage:(NSString *)name;@endUI...
分类:
移动开发 时间:
2015-11-21 14:25:51
阅读次数:
195
package com.example.yabushan.hello3;import android.app.Service;import android.content.Intent;import android.os.Binder;import android.os.IBinder;public...
分类:
移动开发 时间:
2015-11-21 14:25:37
阅读次数:
223
#import ex25 1 def break_words(stuff): 2 """This function will break up words for us.""" 3 words = stuff.split(' ') 4 return words 5 ...
分类:
编程语言 时间:
2015-11-21 14:25:16
阅读次数:
238
package com.example.yabushan.hello3;import android.app.Service;import android.content.Intent;import android.os.Binder;import android.os.IBinder;//服务类p...
分类:
其他好文 时间:
2015-11-21 14:23:55
阅读次数:
144
首先在CatMazeV3中新建CatSprite类,继承于Sprite.其中CatSprite.h文件如下所示:#import "CCSprite.h"@class MainScene;@interface CatSprite : CCSprite@property (nonatomic,assign,readonly) NSInteger numBones;-(id)initWithMainSce...
分类:
其他好文 时间:
2015-11-21 11:54:57
阅读次数:
152