11 2012 档案

NSString赋值方法
摘要://1、创建常量字符串。 NSString *astring = @"This is a String!"; //2、创建空字符串,给予赋值。 NSString *astring = [[NSString alloc] init]; astring = @"This is a String!"; NSLog(@"astring:%@",astring); [astring release]; //3、在以上方法中,提升速度:initWithString方法 NSString *astring = [[NSString alloc] i 阅读全文

posted @ 2012-11-30 11:32 南瓜饼 阅读(1872) 评论(0) 推荐(0) 编辑

IOS中使用正则表达式
摘要:NSString * regex = @"^.*\"success\":false{1}.*$";NSPredicate * pred = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", regex];BOOL isMatch = [pred evaluateWithObject:@"\"loginCallback({\"sS\":\"101\",\"iI\":false,\"iP\&qu 阅读全文

posted @ 2012-11-29 12:05 南瓜饼 阅读(156) 评论(0) 推荐(0) 编辑

反编译APK
摘要:一.反编译Apk得到Java源代码 工具下载:dex2jar-0.0.7-SNAPSHOT.zip2011-7-17 15:39 上传点击文件名下载附件 下载积分: e币 -1 元JD-GUI下载地址: windows版JD-GUI jdgui.zip2011-7-17 15:40 上传点击文件名下载附件 下载积分: e币 -1 元 Linux版JD-GUI:http://laichao.googlecode.com/files/jd-gui-0.3.2.linux.i686.tar.gz步骤: 1.首先找到Android软件安装包中的classes.dex 把.apk文件改名为.zip,然. 阅读全文

posted @ 2012-11-23 14:31 南瓜饼 阅读(182) 评论(0) 推荐(0) 编辑

android仿照ipone的弹性效果
摘要:package com.example.bounce;import android.content.Context;import android.util.AttributeSet;import android.util.DisplayMetrics;import android.widget.ListView; public class BounceListView extends ListView{ private static final int MAX_Y_OVERSCROLL_DISTANCE = 200; private Context mContext; ... 阅读全文

posted @ 2012-11-01 11:26 南瓜饼 阅读(821) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示