- 博客(40)
- 资源 (37)
- 收藏
- 关注
原创 Url decode & encode
// decodeNSString *targetString = [pdfStrstringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];// encode NSString *targetString = [pdfStr stringByAddingPercent
2015-01-16 12:01:48 389
原创 ios8 播放本地文件 [initFileURLWithPath VS fileURLWithPath]
NSString *path = [[NSBundlemainBundle] pathForResource:@"test"ofType:@"mov"]; if (path) { NSLog(@"路径正确"); NSURL *movieURL = [[NSURLalloc] initFileURLWithPath:path];
2015-01-15 14:00:15 502
原创 实用工具
Transmit (FTP)svnX 1.3.4.dmg (SVN)MarkMan_1.40.7.air [AdobeAIR.dmg] (UI)资源已经存到我的资源
2014-03-19 17:23:21 415
原创 Mac Eclipse Project Finder
External ToolsName FinderLocation /usr/bin/openArguments -R ${resource_loc}
2013-06-05 14:38:16 431
原创 bezierPath 不显示
+ (UIBezierPath *)bezierPathWithRect:(CGRect)rect;+ (UIBezierPath *)bezierPathWithOvalInRect:(CGRect)rect;
2013-03-26 10:53:15 486
原创 漂浮
#define TIME_INTERVAL 1.3f [self performSelector:@selector(autoRun) withObject:nil afterDelay:TIME_INTERVAL ];- (void)autoRun { if
2013-03-26 10:52:02 375
原创 Mac 下 App Store 更新 其他账户的应用
app store 更新 其他账户的应用 1,用自己的账号登录App Store;2,查询需要更新的应用,例如xcode;3,系统偏好设置,点击Spotlight,选择隐私tab,添加Macintosh HD;4,回到App Store, 重复第2步,发现刚刚的update变成了install,但是点击无效果;5,回到第3步,删除刚刚添加的隐私tab项目;6,回到A
2013-03-20 10:47:06 1375
原创 ios 应用之间交互
didFinishLaunchingWithOptions- (void) doLogic{NSString *paraStr = [NSStringstringWithFormat:@"%@://return?user=&result=",APP_NAME]; NSString *encodeStr = [CommonUtilsstringByU
2013-03-08 15:14:07 495
原创 UIButton imageEdgeInsert titleEdgeInsert
#define BUTTOM_ICON_W 20.fimageEdgeInsert:UIEdgeInsetsMake(11.f, (BUTTON_WIDTH-BUTTOM_ICON_W)/2,21.f, (BUTTON_WIDTH-BUTTOM_ICON_W)/2)titleEdgeInsert:UIEdgeInsetsMake(12.f, -21, -10.f,1
2013-03-05 16:39:31 622
原创 presentPopoverFromRect
_UIPopoverArrowDirection =UIPopoverArrowDirectionUp;[_popViewControllersetPopoverContentSize:CGSizeMake(_frame.size.width,PopViewHeight)]; [super setPopView];[_popViewControllerpresentP
2013-03-05 16:36:28 578
原创 动态控件
1,enumiOS:typedef enum { DEFINE_TYPE_TEXT = 1,// TEXT DEFINE_TYPE_AREA,// TEXT AREA DEFINE_TYPE_DROPDOWN, // DROP DOWN} DefineUIType;Android:public static enum DefineUIType
2013-02-22 14:41:45 267
原创 iOS runtime
"Runtime is everything between your each function call."id obj;// Methodif ([obj respondsToSelector:@selector(functionName:)]) {}// Classif ([obj isKindOfClass:[NSArray class]] ) {
2013-01-24 10:35:38 204
原创 ~/Library/Developer/Xcode/DerivedData
~/Library/Developer/Xcode/DerivedData
2012-09-12 14:39:13 1126
原创 UISwipeGestureRecognizer
/* // add recognizer UISwipeGestureRecognizer *recognizer;recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(manualChangeView:)];[recognizer setDirection
2012-09-02 18:44:36 226
原创 ios 用个人签名的应用不能同时发布企业 Distribution
个人 Distribution企业 Distribution,不能发布到App store
2012-07-18 15:23:43 329
原创 ios 发短信
1,加入MessageUI.framework2,XXViewController.h#import "MessageUI/MessageUI.h"@interface XXViewController :UIViewController MFMessageComposeViewControllerDelegate>3,XXViewController.m- (vo
2012-04-09 16:14:37 575
原创 UITableView 手势
3.2以前#pragma mark - touch methods@interface BaseUITableViewCell :UITableViewCell{ CGPoint touchBeganPoint; BaseUIViewController *_baseUIVC;}}@property (nonatomic,
2012-04-01 16:26:43 1195
原创 ABRecordRef
- (void)doAddContacts:(id*)sender{ if (_user.phoneNumber ==nil || [_user.phoneNumberisEqualToString:@""]) { return; } ABRecordRef* person = [ABContentUtilselPerson
2012-02-21 16:36:00 1005
原创 pushViewController VS presentModalViewController
自动档不行,就用手动档// Back Button UISegmentedControl *segmentedControl = [[UISegmentedControlalloc] initWithItems:[NSArrayarrayWithObject:NSLocalizedString(NSBackBtnTitle,nil)]]; [
2012-02-21 16:32:06 877
原创 Notes
★ Core Data[[NSManagedObjectModel alloc] initWithContentsOfURL:momURL] VS [[NSManagedObjectModel mergedModelFromBundles:nil] retain]appDelegate.moc★ appDelegate实例CEIBSAppDelegate *appDele
2012-02-03 14:21:40 3998
原创 NSLog
%@ Object%d, %i signed int%u unsigned int%f float/double%x, %X hexadecimal int%o octal int%zu size_t%p pointe
2011-08-09 09:59:09 257
原创 当ScrollView遭遇ListView & Webview progress bar
1,用户明细界面,如何从头开始加载。当ScrollView遭遇ListView[OK]scrollView.post(new Runnable() {public void run() {scrollView.fullScroll(ScrollView.FOCUS_UP);}})
2011-07-20 10:08:00 1937
原创 push notify
push notify- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {{// Other Code N
2011-07-12 16:23:59 1030
原创 UIAlertView vs UIActionSheet
@interface XXViewController : XXNavigationController {} UIAlertView *alert = [[UIAlertView alloc] initWithTitle:_ContractCallNum message:nil delegate:self
2011-06-13 19:18:00 354
原创 UITableView Cell
//指定有多少个分区(Section),默认为1- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1;} //指定每个分区中有多少行,默认为1- (NSInteger)tableView:(UITableView *)tableView numberOfRowsI
2011-06-10 16:09:00 927
原创 android apiKey
<br />1,打开Eclipse--->Windows--->Preferences--->Android--->Build<br />查看默认的debug keystore位置<br />C:/Documents and Settings/Administrator/.android/debug.keystore<br /> <br />2,cmd窗口,运行下面指令:<br />keytool -list -alias androiddebugkey -keystore "C:/Document
2010-08-18 15:57:00 431
原创 SetupHooks 配置
devicesS60_3rd_FP2_SDK_v1.1:com.nokia.s60@echo off rem Startcd D:/Program Files/HookLoggerSetupHooks S60_3rd_FP2_SDK_v1.1:com.nokia.s60HookLogger
2010-08-17 17:57:00 696
原创 Configure & Deploy BEA Weblogic 8.1
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE
2010-01-19 16:22:00 400
原创 MacBook, MacBook Air以及MacBook Pro区别
首先。三个系列的笔记本电脑,均是使用Mac OS X操作系统的Macintosh电脑。其中MB和MBP分别是上一代产品iBook和PowerBook的换代名称,MBA是新推出的产品。MB以性价比为重点,MBP重视性能,MBA针对便携性三个系列的电脑主要从配备的硬件上被区别开来:MB 系列的屏幕均为13英寸,CPU配备最高为2.4G酷睿2双核,标配1G-2G DDR667内存,硬
2009-12-16 14:39:00 5010
原创 GPhone
apk安装与卸载1,install cd toolsadb install E:/soft/test.apk2,removeadb shell rm data/app/test.apkU盘mksdcard -l sdcard 512M e:/sdcard.img Eclipse应用Run Configurations -> Common -> File-sdcard sdcard.imgapk签名
2009-12-14 15:18:00 434
原创 Config
#config db server#SqlServer#type=sqlserver#driver=com.microsoft.sqlserver.jdbc.SQLServerDriver#url=jdbc:sqlserver://127.0.0.1:1433;DatabaseName=music#user=test#pswd=123 #Oracletype=oracledriver=or
2009-08-18 15:14:00 279
原创 EmailSpider
import java.io.BufferedReader;import java.io.FileNotFoundException;import java.io.FileReader;import java.io.IOException;import java.util.regex.Matcher;import java.util.regex.Pattern;public class Ema
2009-08-06 16:42:00 268
原创 CodeCounter
import java.io.BufferedReader;import java.io.File;import java.io.FileNotFoundException;import java.io.FileReader;import java.io.IOException;public class CodeCounter { static long normalLines = 0; s
2009-08-06 16:40:00 222
原创 Order Array
/** Two Order Array merge One Order Array*/public class SortOrder{ public static void main(String [] args){ int array1[]={5,34,2,57,78},array2[]={67,43,26,47,87,85}; int s1=array1.length, i1=0; i
2009-08-06 16:33:00 387
原创 Linux 基础
Linux start up sequence 1,load bios(hardware information) 2,read MBRs config to find out the OS 3,load the kernel of the OS 4,init process starts... 5,execute /etc/rc.d/sysinit 6,start other modules(
2009-06-26 15:39:00 1442
原创 j2me unit test
package com.common;import j2meunit.framework.Test;import j2meunit.framework.TestCase;import j2meunit.framework.TestMethod;import j2meunit.framework.TestSuite;public class StringUtilTest extends Te
2009-06-26 15:34:00 373
原创 j2me界面部分覆盖的问题
今天调试程序时候,发现界面重画时,只能部分覆盖前面的界面,后来查资料才发现在使用完setClip以后,要恢复系统的默认设置,要调用: g.setClip(0,0,this.getWidth(),this.getHeight());否则就会出现只能部分覆盖的问题。
2009-01-06 21:33:00 386
pod setup失败的解决方案
2014-07-22
zayitlib.dll
2009-11-25
3gp,mp4,m4a,mov编辑器
2009-06-22
JUDE(Java and UML Developers Environment) 1.2
2008-02-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人