火星人驾到

2011年5月21日

iPhone object-c 的reflection使用方法

摘要: // Without reflection Foo *foo = [[Foo alloc] init]; [foo hello]; // With reflection Class cls = NSClassFromString(@"Foo"); id foo = [[cls alloc] init]; SEL selector = NSSelectorFromString(@"hello"); [foo performSelector:selector withObject:nil]; 阅读全文

posted @ 2011-05-21 15:06 火星人驾到 阅读(194) 评论(0) 推荐(0) 编辑

2011年5月17日

APK权限大全

摘要: 目前很多Android软件和游戏中存在恶意行为或收集用户隐私等问题,mTweak站点的软件和游戏下载专区为每个应用程序都进行了严格的检查,显示APK权限和安全敏感相关的问题。同时手机优化大师的APK安装器将会检查每个应用的请求权限,保证用户的安全,下面是mTweak总结的APK权限大全。 访问登记属性android.permission.ACCESS_CHECKIN_PROPERTIES ,读取或写入登记check-in数据库属性表的权限获取错略位置android.permission.ACCESS_COARSE_LOCATION,通过WiFi或移动基站的方式获取用户错略的经纬度信息,定位精度 阅读全文

posted @ 2011-05-17 16:05 火星人驾到 阅读(4027) 评论(0) 推荐(0) 编辑

2011年4月29日

Android布局属性详解

摘要: RelativeLayout用到的一些重要的属性: 第一类:属性值为true或false android:layout_centerHrizontal 水平居中 android:layout_centerVertical 垂直居中 android:layout_centerInparent 相对于父元素完全居中 android:layout_alignParentBottom 贴紧父元素的下边缘 android:layout_alignParentLeft 贴紧父元素的左边缘 android:layout_alignParentRight 贴紧父元素的右边缘 android:layout_a. 阅读全文

posted @ 2011-04-29 13:35 火星人驾到 阅读(223) 评论(0) 推荐(0) 编辑

2011年4月19日

正则表达式Regex使用

摘要: Java正则表达式学习:因为正则表达式是一个很庞杂的体系,此例仅举些入门的概念,更多的请参阅相关书籍及自行摸索。\\ 反斜杠\t 间隔 ('\u0009')\n 换行 ('\u000A')\r 回车 ('\u000D')\d 数字 等价于[0-9]\D 非数字 等价于[^0-9]\s 空白符号 [\t\n\x0B\f\r]\S 非空白符号 [^\t\n\x0B\f\r]\w 单独字符 [a-zA-Z_0-9]\W 非单独字符 [^a-zA-Z_0-9]\f 换页符\e Escape\b 一个单词的边界\B 一个非单词的边界\G 前一个匹配的结束^ 阅读全文

posted @ 2011-04-19 13:41 火星人驾到 阅读(306) 评论(0) 推荐(0) 编辑

2011年4月6日

NSNotificationCenter 用法

摘要: 1. 定义一个方法update2. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(update) name:@"update" object:nil]3. 在要发出通知消息的地方[[NSNotificationCenter defaultCenter] postNotificationName:@"update" object:nil]; 阅读全文

posted @ 2011-04-06 16:05 火星人驾到 阅读(210) 评论(0) 推荐(0) 编辑

2011年3月17日

Android Intent 大全

摘要: android中intent是经常要用到的。不管是页面牵转,还是传递数据,或是调用外部程序,系统功能都要用到intent。 ★intent大全: 1.从google搜索内容 Intentintent=newIntent(); intent.setAction(Intent.ACTION_WEB_SEARCH); intent.putExtra(SearchManager.QUERY,"searchString") startActivity(intent); 2.浏览网页 Uriuri=Uri.parse("http://www.google.com") 阅读全文

posted @ 2011-03-17 13:32 火星人驾到 阅读(648) 评论(0) 推荐(0) 编辑
MIME Type大全之二

摘要: File TypeMIME Media TypeAudio 3GPP files (.3gp)audio/3gppAudio AMR files (.amr)audio/amrAudio AMR (wideband) files (.awb)audio/amr-wbAudio MIDI files (.mid or .midi)audio/midiAudio MP3 files (.mp3)audio/mpegAudio MP4 files (.mp4)audio/mp4Audio WAV files (.wav)audio/wavaudio/x-wavHTML files (.html or 阅读全文

posted @ 2011-03-17 09:45 火星人驾到 阅读(422) 评论(0) 推荐(0) 编辑
MIME TYPE 大全

摘要: Mime-TypDateiendung(en)Bedeutungapplication/acad*.dwgAutoCAD-Dateien (nach NCSA)application/applefileAppleFile-Dateienapplication/astound*.asd *.asnAstound-Dateienapplication/dsptype*.tspTSP-Dateienapplication/dxf*.dxfAutoCAD-Dateien (nach CERN)application/futuresplash*.splFlash Futuresplash-Dateien 阅读全文

posted @ 2011-03-17 09:27 火星人驾到 阅读(221) 评论(0) 推荐(0) 编辑

2011年3月4日

Android开发基本功能介绍

摘要: 一、 环境配置和安装(Android2.2) 参考文章:这里 1.1 JDK 1.2 SDK 下载地址:http://dl.google.com/android/android-sdk_r06-windows.zip 1.3 Eclipse 3.5 (Galileo) 下载地址: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/R/eclipse-java-galileo-win32.zip 1.4 ADT 0.9.7 下载地址:http://dl.goog 阅读全文

posted @ 2011-03-04 08:43 火星人驾到 阅读(514) 评论(0) 推荐(0) 编辑

2011年3月3日

NSString常用操作

摘要: 1 合并一个字符串数组到单个字符串。NSArray*chunks=...getanarray,saybysplittingit; string=[chunkscomponentsJoinedByString:@":-)"];输出结果如下:oop:-)ack:-)bork:-)greeble:-)ponies2 将一个字符串分割成数组NSString*string=@"oop:ack:bork:greeble:ponies"; NSArray*chunks=[stringcomponentsSeparatedByString:@":"] 阅读全文

posted @ 2011-03-03 09:36 火星人驾到 阅读(1581) 评论(0) 推荐(0) 编辑