今天在使用协议的过程中,偶然发现这样使用
@interface AppDelegate (){
id testdelegate;
}
@property (nonatomic , assign) id testdelegate;
@end
@implementation AppDelegate
@synthesize testdelegate;
会报错:
Existing i...
分类:
移动开发 时间:
2015-03-30 16:34:21
阅读次数:
150
[翻译]如何安装ACRA-一个Android应用Crash跟踪系统—在你自己的服务器上How to setup ACRA, an Android Application Crash Tracking system, on your own host
原文地址:
http://inthecheesefactory.com/blog/how-to-install-and-use-acra-andro...
分类:
移动开发 时间:
2015-03-30 16:31:22
阅读次数:
1013
自定义cell有两种方式:
第一种:通过创建xib文件。
①首先创建xib文件
②创建xib文件对应 的模型A,名字与xib文件一样,并继承UITableViewCell类,并实现cellWithTableView的构造方法。
③在interface builder里更改xib文件默认的类,为第二步创建的模型类。
④创建数据模型B,并且A中包含数据模型B
⑤A通过懒加载B方法(就是重写...
分类:
移动开发 时间:
2015-03-30 16:32:12
阅读次数:
160
当开发多媒体应用或者游戏应用的时候,需要使用音量控制键来设置程序的音量大小。在Android系统中有多中音频流,通过Activity中的函数 setVolumeControlStream(int streamType)可以设置该Activity中音量控制键控制的音频流,一般在onCreate函数中设置。Android中有如下几种音频流(streamType是需要调整音量的类型):
Audio...
分类:
移动开发 时间:
2015-03-30 16:32:30
阅读次数:
148
//判断是否为整形:
- (BOOL)isPureInt:(NSString*)string{
NSScanner* scan = [NSScanner
scannerWithString:string];
int val;
return[scan scanInt:&val] && [scan
isAtEnd];
}
//判断是否为浮点...
分类:
移动开发 时间:
2015-03-30 16:30:29
阅读次数:
189
??
Android系统(Android 4.4 或以上)自带有录屏(动态截屏)功能,基于命令行。
具体方法是:
adb shell screenrecord /sdcard/myrecord.mp4
这段命令在控制台执行后,Android系统将立即对设备的屏幕录制屏幕的视频。adb shell screenrecord 是执行录屏;sdcard/myrecord.mp4 是视频文件存放的...
分类:
移动开发 时间:
2015-03-30 16:31:08
阅读次数:
332
1.范围的作用,看看一下结构体:
[plain] view plaincopy
typedef struct _NSRange {
unsigned int location;
unsigned int length;
}N...
分类:
移动开发 时间:
2015-03-30 16:30:36
阅读次数:
130
(1)首先创建生成原始数据的service,VideoNewsServiceBean,这是一个接口的实现类,接口的功能如下:public interface VideoNewsService {
/**
* 获取最新的视频资讯
* @return
*/
public List getLastNews();}News类public class...
分类:
移动开发 时间:
2015-03-30 16:27:11
阅读次数:
187
第一个方法简单点,不过需要在Android系统源码的环境下用make来编译: 1. 在应用程序的AndroidManifest.xml中的manifest节点中加入android:sharedUserId="android.uid.system"这个属性。
2. 修改Android.mk文件,加入LOCAL_CERTIFICATE := platform这一行
3. 使用mm命令来编...
分类:
移动开发 时间:
2015-03-30 16:26:57
阅读次数:
173
(1)创建实体类Newspublic class News {
private Integer id;
private String title;
private Integer timelength; public News(Integer id, String title, Integer timelength) {
this.id = id;...
分类:
移动开发 时间:
2015-03-30 16:24:10
阅读次数:
143
14年11月笔者在百度xteam博客中看到其公开了此前报告给Google的CVE-2014-8507漏洞细节——系统代码在处理经由短信承载的WAP推送内容时产生的经典SQL注入漏洞,影响Android 5.0以下的系统。于是对这个漏洞产生了兴趣,想深入分析看看该漏洞的危害,以及是否能够通过一条短信来...
分类:
移动开发 时间:
2015-03-30 16:18:09
阅读次数:
231
升级android-studio之后,出现这个问题,一直解决不了。无意间,在布局文件的Design界面中,修改原来的AppTheme为Base.Theme.AppCompat就修复了此问题。暂时不知道是什么缘故,不过希望能够帮到那些遇到这个问题的人。
分类:
移动开发 时间:
2015-03-30 16:18:20
阅读次数:
197
1、创建一个项目File——>NewProject——>.......——>Finish2、创建模块3、MyActivity.javapackagecom.example.myapp;importandroid.app.Activity;importandroid.app.AlertDialog;i...
分类:
移动开发 时间:
2015-03-30 16:17:52
阅读次数:
188
#include 非标准输入输出流#include 标准输入输出流C++中为了避免名字定义冲突,特别引入了“名字空间的定义”,即namespace。当代码中用时,输出可直接引用cout继承C语言的标准库文件,未引入名字空间定义,所以可直接使用。当代码中引入时,输出需要引用std::cout时,引入s...
分类:
移动开发 时间:
2015-03-30 16:16:48
阅读次数:
152
关键点:- (void)locationManager:(CLLocationManager*)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status代理方法 iOS7环境下当APP首次调用startUpdatin...
分类:
移动开发 时间:
2015-03-30 16:05:14
阅读次数:
130
下载地址:http://www.lanrenmb.com/HTML5/1086_5.html
分类:
移动开发 时间:
2015-03-30 16:04:03
阅读次数:
174
yum install ntfs-3gsudo mount -t ntfs-3g /dev/sdc1 /mnt/mobiledisk出现错误:Mount is denied because the NTFS volume is already exclusively opened.The volum...
分类:
移动开发 时间:
2015-03-30 15:59:23
阅读次数:
1263