[AVAudioSession sharedInstance]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(audioRouteChangeListenerCallback:) name:AVA ...
分类:
移动开发 时间:
2017-07-11 11:19:39
阅读次数:
248
一、定义一个类 第一种方法__init__()方法是一种特殊的方法,被称为类的构造函数或初始化方法,当创建了这个类的实例时就会调用该方法 self 代表类的实例,self 在定义类的方法时是必须有的,虽然在调用时不必传入相应的参数。 ...
分类:
其他好文 时间:
2017-07-10 20:19:02
阅读次数:
136
if (parentOrg) { if (parentOrg.children) { parentOrg.children.push(org); } else { parentOrg.children = []; parentOrg.children.push(org); } } else { r. ...
分类:
编程语言 时间:
2017-07-10 19:07:36
阅读次数:
180
https://leetcode.com/problems/product-of-array-except-self/#/description Given an array of n integers where n > 1, nums, return an array output such t ...
分类:
其他好文 时间:
2017-07-10 18:00:43
阅读次数:
193
使用接口创建自定义菜单后,开发者还可使用接口查询自定义菜单的结构。 查询菜单的接口如下: 正确时的返回JSON数据包如下: ...
分类:
微信 时间:
2017-07-10 16:50:09
阅读次数:
297
当您访问自己组织或个人的服务时是否经常遇到如下的证书问题:当然,您可以容忍此错误,Continuetothiswebsite。或者从CA(证书颁发机构)购买SSL证书,除此之外我们是否还有更多的选择呢?是的,我们可以使用OpenSSL创建个人的免费证书。OpenSSLOpenSSL是大多数MacOSX,Linux..
分类:
其他好文 时间:
2017-07-10 16:26:35
阅读次数:
472
#import <UIKit/UIKit.h> @interface ViewController : UIViewController<UIPickerViewDelegate,UIPickerViewDataSource>{ NSArray *_nameArray; } @property (s ...
分类:
移动开发 时间:
2017-07-10 14:33:26
阅读次数:
317
一、@property 使用@property 修饰的变量,编译器会自动生成带下划线的同名属性和与之对应的 get set 方法。通过 . 的方式访问属性其实是访问与之对应的 get set 方法,所以在 get set 中不可以使用self.属性 的形式,否则会陷入死循环。当同时重写两个方法中是需 ...
分类:
编程语言 时间:
2017-07-10 12:08:01
阅读次数:
306
Swift:Pop汉堡包变红叉叉 定义: //状态 var hamburger = true var hamburgerButton : UIButton? var top:UIView? var middle:UIView? var bottom:UIView? //实例化按钮 self.hamb ...
分类:
其他好文 时间:
2017-07-10 10:25:51
阅读次数:
127
1.tutorial08.cpp // Include standard headers #include #include #include // Include GLEW #include // Include GLFW #include GLFWwindow* window; // Inclu... ...
分类:
其他好文 时间:
2017-07-10 00:36:45
阅读次数:
518