原创 MapKit 地圖
參考 http://blog.csdn.net/pjk1129/article/details/7492166 http://blog.csdn.net/tangaowen/article/details/6527901 http://w
原创 plist 轉 json
+ (void)showJSON{ NSArray *arrayPlists = [[NSBundle mainBundle] pathsForResourcesOfType:@"plist" inDirectory:nil];
原创 cmd 跳轉文件路徑
跳轉到指定文件目錄下 如果同一個盤就用 cd 路徑 如 cd c:\11 如果不同分區就用 cd /d 盤符\11 如 cd /d e:\11注
原创 ajax timeout
ajax timeout 對jQuery來說,超時可以直接設置timeout參數,並在error事件中捕獲第二個參數,如果是“timeout”則表明捕獲了超時事件,非常清楚。 例子: $.ajax({ type: "POST", con
原创 iOS 字體
添加字體到應用中 http://blog.csdn.net/justinjing0612/article/details/8093985
原创 iOS 獲取版本信息
NSLog(@"uniqueIdentifier: %@", [[UIDevice currentDevice] uniqueIdentifier]); NSLog(@"name: %@", [[UIDevice cur
原创 app 代理網址
ios app 代理 http://www.diawi.com/
原创 JAVA array,map 轉 json 字符串
Java代碼 public class User { private String username; private String password; pu
原创 android真機調試
1、手機通過數據線連接在電腦上 2、設置android手機爲USB調試模式。步驟: menu—> 設置 —> 應用程序 —> 開發 , 選擇【USB調試】 3、如果是window系統,系統會提示安裝驅動: 選擇正確的and
原创 方法可用範圍判斷
思路:程序sdk與系統版本對比,來判斷某個方法是否適用; 1,根據系統版本 #define IS_IOS_7 ([[[UIDevice currentDevice] systemVersion] floatValue] >6.9 ? Y
原创 GCD
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ NSURL * url = [NSURL URLWithSt
原创 Mail 郵件發送
1.首先添加 MessageUI.framework 框架 2. 引入框架 在類的頭部 #import <MessageUI/MessageUI.h> #import <MessageUI/MFMailComposeView
原创 NSArray / NSMutArray 數組排序
在一個數組中,進行,多項元素的排序 [_dataList sortUsingComparator:^NSComparisonResult(id ob
原创 java- 發送郵件
發送郵件 發送郵件2 郵件主題亂碼問題:解決辦法如下 http://blog.csdn.net/wang12/article/details/5989820 mailMessage.setSubject(MimeUtility.enc
原创 README
Ruby 常用部分集合 String string length str.length string substring str[index] → new_str or nil click to toggle source