- 博客(12)
- 收藏
- 关注
转载 IOS AVFoundation--判断设备是否授权
转自:http://blog.csdn.net/mr_lucien/article/details/51153433在AVFoundation框架中AVAudioRecorder类专门处理录音操作,支持多种音频格式。下面是常用的属性和方法:属性说明@property(readonly, getter=isPlaying) BOOL
2016-09-14 11:23:46 1571
转载 iOS 视频播放(一) MPMoviePlayerViewController、避免在后台销毁
转自:http://blog.csdn.net/xueer8835/article/details/22286629 #import MediaPlayer.framework。MPMoviePlayerViewController:打开网络视频:-(void)openmovie{ MPMoviePlayerViewController *movie = [[MPM
2016-09-14 10:36:59 2277
转载 IOS 转场动画(六)
转自:http://blog.csdn.net/ityanping/article/details/39270609视图切换,没有NavigationController的情况下,一般会使用presentViewController来切换视图并携带切换时的动画,其中切换方法如下:– presentViewController:animated:completion: 弹
2016-09-14 10:33:31 489
转载 iOS 视频播放(一~二)客户端小应用、边下边播
转自:http://www.cnblogs.com/wendingding/p/3815211.html、细节处理1.问题:系统自带的MPMoviePlayerViewController,当程序进入后台的时候就会自动销毁。如何让其保持状态进入后台前的状态?原因:当系统进入后台的时候会发出通知:UIApplicationDidEnterBackgroundNotif
2016-09-13 18:00:30 672
原创 C++ 命名空间(十六)--namespace、using..
#include using namespace std;namespace jason { int i; char d[] = "命名空间变量"; float f; void test() { cout << "s" << endl; } struct tt{int i; dou
2016-09-12 14:08:57 440
原创 C++ 头文件(十五)--定义成员属性、引用、避免多次包含
// MyFirst.hpp//if not define 第一次引用头文件,如果没有定义宏,则进入#ifndef 和 #endif中间的语句#ifndef MyFirst_hpp#define MyFirst_hpp#include //(一)头文件常包含的内容/* 1.函数原型 2.#define const 的符号常量 3.内联函数 inline 4.结构声明 5
2016-09-08 16:09:17 1022
原创 C++ 函数模板(十四)--template 泛型函数模板、通用函数、重载模板
#include #include using namespace std;//函数模板,typename 等价于 classtemplate void test(AnyType &a, AnyType &b) { auto c = a; a = b; b = c;}template void test2(AnyType2 &a, AnyTyp
2016-09-07 12:01:49 1442
原创 C++ 函数重载(十三)
#include //函数重载,就是函数名相同,形参不同的函数void printf(int,double);void printf(int,int);void printf(int,int,double);void printf(int,int,double,int);int main(int argc, const char * argv[]) {
2016-09-06 17:35:36 350
原创 C++ 引用变量(十二)-- & b *b和C的传递指针形参一样效果
#include using namespace std;void gest2(int g){ //两个变量,两个名称, 不可影响传入变量的原始值 g = 9999;}void gest(int &g){ //一个变量,两个名称, 直接关联传入变量值 g = 100;}void gestPoint(int *g){ //指针地址一
2016-09-05 16:25:16 476
原创 C++ 内联函数(十一)--inline对比C宏
#include //C宏#define k_squgec(X) (X)*(X)#define k_squgec2(X) X*X//C++ 内联函数inline double SQUGEC(double X) {return X*X;}int main(int argc, const char * argv[]) { int a, b ,c = 12;
2016-09-05 14:58:23 478
原创 C++ 函数指针(十)--函数参量中带有指针函数
#include using namespace std;double test(int);void extemp(int a, double (*test2)(int));int main(int argc, const char * argv[]) { extemp(1, test); return 0;}double te
2016-09-01 16:11:51 441
原创 C++ array数组(九)
#include #include #include using namespace std;int main(int argc, const char * argv[]) { array s_ary = {"sdf","dsfsd","sdf"}; array i_ary = {1,2,3,4}; return 0;}
2016-09-01 15:38:32 518
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人