- 博客(40)
- 资源 (37)
- 收藏
- 关注
原创 Url decode & encode
// decode NSString *targetString = [pdfStr stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; // encode NSString *targetString = [pdfStr stringByAddingPercent
2015-01-16 12:01:48
492
原创 ios8 播放本地文件 [initFileURLWithPath VS fileURLWithPath]
NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"mov"]; if (path) { NSLog(@"路径正确"); NSURL *movieURL = [[NSURL alloc] initFileURLWithPath:path];
2015-01-15 14:00:15
625
原创 实用工具
Transmit (FTP) svnX 1.3.4.dmg (SVN) MarkMan_1.40.7.air [AdobeAIR.dmg] (UI) 资源已经存到我的资源
2014-03-19 17:23:21
495
原创 Mac Eclipse Project Finder
External Tools Name Finder Location /usr/bin/open Arguments -R ${resource_loc}
2013-06-05 14:38:16
503
原创 bezierPath 不显示
+ (UIBezierPath *)bezierPathWithRect:(CGRect)rect; + (UIBezierPath *)bezierPathWithOvalInRect:(CGRect)rect;
2013-03-26 10:53:15
579
原创 漂浮
#define TIME_INTERVAL 1.3f [self performSelector:@selector(autoRun) withObject:nil afterDelay:TIME_INTERVAL ]; - (void)autoRun { if
2013-03-26 10:52:02
446
原创 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
1782
原创 ios 应用之间交互
didFinishLaunchingWithOptions - (void) doLogic { NSString *paraStr = [NSString stringWithFormat:@"%@://return?user=&result=", APP_NAME]; NSString *encodeStr = [CommonUtils stringByU
2013-03-08 15:14:07
578
原创 UIButton imageEdgeInsert titleEdgeInsert
#define BUTTOM_ICON_W 20.f imageEdgeInsert: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
717
原创 presentPopoverFromRect
_UIPopoverArrowDirection =UIPopoverArrowDirectionUp; [_popViewControllersetPopoverContentSize:CGSizeMake(_frame.size.width,PopViewHeight)]; [super setPopView]; [_popViewControllerpresentP
2013-03-05 16:36:28
663
原创 动态控件
1,enum iOS: 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
365
原创 iOS runtime
"Runtime is everything between your each function call." id obj; // Method if ([obj respondsToSelector:@selector(functionName:)]) { } // Class if ([obj isKindOfClass:[NSArray class]] ) {
2013-01-24 10:35:38
274
原创 ~/Library/Developer/Xcode/DerivedData
~/Library/Developer/Xcode/DerivedData
2012-09-12 14:39:13
1271
原创 UISwipeGestureRecognizer
/* // add recognizer UISwipeGestureRecognizer *recognizer; recognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(manualChangeView:)]; [recognizer setDirection
2012-09-02 18:44:36
296
原创 ios 用个人签名的应用不能同时发布企业 Distribution
个人 Distribution 企业 Distribution,不能发布到App store
2012-07-18 15:23:43
393
原创 ios 发短信
1,加入MessageUI.framework 2,XXViewController.h #import "MessageUI/MessageUI.h" @interface XXViewController : UIViewController MFMessageComposeViewControllerDelegate> 3,XXViewController.m - (vo
2012-04-09 16:14:37
656
原创 UITableView 手势
3.2以前 #pragma mark - touch methods @interface BaseUITableViewCell : UITableViewCell { CGPoint touchBeganPoint; BaseUIViewController *_baseUIVC; } } @property (nonatomic,
2012-04-01 16:26:43
1275
原创 ABRecordRef
- (void)doAddContacts:(id*)sender { if (_user.phoneNumber == nil || [_user.phoneNumberisEqualToString:@""]) { return; } ABRecordRef* person = [ABContentUtilselPerson
2012-02-21 16:36:00
1100
原创 pushViewController VS presentModalViewController
自动档不行,就用手动档 // Back Button UISegmentedControl *segmentedControl = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObject:NSLocalizedString(NSBackBtnTitle, nil)]]; [
2012-02-21 16:32:06
955
原创 Notes
★ Core Data [[NSManagedObjectModel alloc] initWithContentsOfURL:momURL] VS [[NSManagedObjectModel mergedModelFromBundles:nil] retain] appDelegate.moc ★ appDelegate实例 CEIBSAppDelegate *appDele
2012-02-03 14:21:40
4106
原创 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
340
原创 当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
2045
原创 push notify
push notify- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {{// Other Code N
2011-07-12 16:23:59
1133
原创 UIAlertView vs UIActionSheet
@interface XXViewController : XXNavigationController {} UIAlertView *alert = [[UIAlertView alloc] initWithTitle:_ContractCallNum message:nil delegate:self
2011-06-13 19:18:00
415
原创 UITableView Cell
//指定有多少个分区(Section),默认为1- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1;} //指定每个分区中有多少行,默认为1- (NSInteger)tableView:(UITableView *)tableView numberOfRowsI
2011-06-10 16:09:00
1004
原创 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
524
原创 SetupHooks 配置
devicesS60_3rd_FP2_SDK_v1.1:com.nokia.s60@echo off rem Start cd D:/Program Files/HookLogger SetupHooks S60_3rd_FP2_SDK_v1.1:com.nokia.s60 HookLogger
2010-08-17 17:57:00
812
原创 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
477
原创 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
5664
原创 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
537
原创 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
334
原创 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
357
原创 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
282
原创 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
469
原创 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
1553
原创 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
438
原创 j2me界面部分覆盖的问题
今天调试程序时候,发现界面重画时,只能部分覆盖前面的界面,后来查资料才发现在使用完setClip以后,要恢复系统的默认设置,要调用: g.setClip(0,0,this.getWidth(),this.getHeight());否则就会出现只能部分覆盖的问题。
2009-01-06 21:33:00
455
3gp,mp4,m4a,mov编辑器
2009-06-22
JUDE(Java and UML Developers Environment) 1.2
2008-02-29
pod setup失败的解决方案
2014-07-22
zayitlib.dll
2009-11-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅