Time of Update: 2015-07-03
標籤:轉:http://blog.sina.com.cn/s/blog_b0c5954101014upb.html 1.截取字串”20|http://www.621life.com“ 中 ‘|’字元前面及後面的資料,分別輸出它們NSRange range = [responseString rangeOfString:@"|"];int location = range.location;NSString *str1 =
Time of Update: 2015-07-03
標籤:一、關鍵概念:Generic Attribute Profile (GATT)通過BLE串連,讀寫屬性類小資料的Profile通用規範。現在所有的BLE應用Profile都是基於GATT的。 Attribute Protocol (ATT)GATT是基於ATT
Time of Update: 2015-07-03
標籤:1. 主要 引用 這個類(AudioService.java) 1 public class AudioService extends Service implements 2 MediaPlayer.OnCompletionListener { 3 // 執行個體化MediaPlayer對象 4 MediaPlayer player; 5 private final IBinder binder = new AudioBinder(); 6 7
Time of Update: 2015-07-03
標籤:iOS7系統時:_tableView.separatorInset = UIEdgeInsetsZero;iOS8系統時:首先在viewDidLoad方法中加上如下代碼:if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)]) {[self.tableView setSeparatorInset:UIEdgeInsetsZero];}if ([self.tableView
Time of Update: 2015-07-03
標籤:android源碼分析 Android 訊息處理源碼分析(1)點擊開啟連結繼續接著分析剩下的類檔案Looper.javapublic final class Looper { final MessageQueue mQueue; //訊息佇列 final Thread mThread; //Looper聯絡的線程 public static void prepare() { prepare(true); }
Time of Update: 2015-07-03
標籤:有沒有遇到上線後發現很嚴重的bug這種情況,修複bug後提交審核又是漫長的等待,那樣會把人逼瘋的。估計是為了對應這樣的情況,Apple提供有一個加速審核的通道:https://developer.apple.com/appstore/contact/appreviewteam/index.html 介面如下:除了上面的,中間需要填寫app的一些資訊。加速是否能申請成功,關鍵是看你填寫最後部分的描述比如你是緊急修複嚴重bug,1、那你要解釋這個bug的嚴重性,必須修複
Time of Update: 2015-07-03
標籤:studio android 修改keymap修改常用的快速鍵代碼補全(Eclipse: ALT+/) Android Studio中預設用的是Ctrl+Space, 這跟IME切換衝突,找到Keymap->Main Menu->Code->Completion->Basic,改為ALT+/快速錯誤修正(Eclipse: Ctrl+1) 找到 Keymap->Other->Show
Time of Update: 2015-07-03
標籤:在Android 5.2的發布日期不詳。大概2015.10所有的Android的更新,5.1修正了許多問題,但也產生了一些問題: Nexus的5,例如,已經出現了記憶體流失,這將減緩某些使用者的裝置下的報告。我們倒是希望這將是固定在5.1.1更新,但它可以在android5.2,而不是功能。電池壽命也未嘗與Android更新定期改善,所以我們希望的Android5.2將繼續提高。當然,我們總是希望更新會給他們帶來一個或兩個驚喜的功能,是Android OS在前進,而不僅僅修正bug。
Time of Update: 2015-07-03
標籤:Cordova使用官網文檔http://cordova.apache.org/docs/en/5.0.0/guide_cli_index.md.html#The%20Command-Line%20Interface/ 官方樣本: npm install -g phonegap –全域安裝phonegap npm install -g cordova cordova create hello com.example.hello HelloWorld -d cd
Time of Update: 2015-07-03
標籤:github ios ios開發 也研究了下RAC,這個的確一時很難學進去,都是各種流的做法。流來流去,訊號機制。廢話不說,直接上代碼---也可以去我github點擊開啟連結#import "ViewController.h"#import "RWDummySigninService.h"#import
Time of Update: 2015-07-03
標籤:移動互連網被視為傳統互連網之後的又一座金礦,而移動營銷又是移動互連網中的熱門項目,所以移動營銷被很多人看好。在廣告界有一句名言:“我知道廣告費有一半被浪費了,但我不知道被浪費的是那一半”,這句話道出了福士廣告時代硬傷。每個行銷人員都知道,廣告的核心就是將合適的資訊傳遞給合適的人看,但在福士廣告時代難於做到這點。廣告與消費者的相關程度往往與產生轉換的可能性成正比。正是因為這個原因,使用者的個人資訊,包括行為資訊、位置資訊、時間資訊等對行銷人員有非常大的吸引力。而移動定位服務恰恰能夠為行銷人員
Time of Update: 2015-07-03
標籤: 之前學的是C#,然後想轉android,完全是個小白。然後就看了一些安卓的教學視頻,在慕課網(http://www.imooc.com/course/list)中學習的。 然後想做一個登入的小dome,然後我就開始拉介面,寫事件,寫介面。瞬間感覺好牛逼的感覺(自我感覺而已莫要當真,各位大大見笑)
Time of Update: 2015-07-03
標籤:資料庫內容大概如下:{_id:1,"hero_list" : { "15521" : { "stars" : 0, "_id" : 15521, "equip" : [ [ ], [ ],
Time of Update: 2015-07-03
標籤: 1 /* 判斷輸入是否為合法的電話號碼,手機號碼 */ 2 function isphone(inpurStr) 3 { 4 var partten = /^1[3,5,8]\d{9}$/; //手機號碼 5 if(partten.test(inpurStr)) 6 { 7 return true; 8 } 9 partten = /^(\d{3,4}\-)?\d{7,8}$/i; //帶橫線 電話號碼10
Time of Update: 2015-07-03
標籤: 第 1 頁:原型介面製作工具Lumzy 第 2 頁:線上工具Mockingbird 第 3 頁:開源UI工具The Pencil Project 第 4 頁:JS開發套件Dojo 第 5 頁:排版託管Mocklinkr 第 6 頁:線上排版工具MockFlow 第 7 頁:Serena Prototype Composer 第 8 頁:線上繪圖工具Cacoo 第 9
Time of Update: 2015-07-03
標籤:tomcat android 上午遇到一個棘手的事兒,匯入一個工程,結果把原有的Tomcat伺服器給導壞了,各種紅的、黑的、藍的錯誤滿天飛啊,剛弄完一個項目,怕被毀了,我那個揪心呀!還好,在走頭無路的情況下選擇了以下最有效解決方式:請看以下幾個錯誤:Document base
Time of Update: 2015-07-03
標籤:南郵java程式設計實驗南郵JAVA程式設計實驗2 小應用程式Applet設計實驗目的:要求學生能在學習和理解課堂學習內容中JAVA小應用程式的基礎上,通過實驗,培養學生將JAVA小應用程式相關知識點(包括JAVA Applet和低級事件處理模型)有機結合,設計基於WEB瀏覽器的小應用程式的能力。實驗內容:設計和編寫一個可以用滑鼠操作的Applet小應用程式和相應的HTML頁面,觀察Applet的執行過程,測試程式滑鼠使用者互動操作的效果。實驗代碼:JAVA:import
Time of Update: 2015-07-03
標籤:主要代碼如下://自訂導覽列返回按鈕 self.navigationItem.leftBarButtonItem = ({ //導覽列返回背景視圖 UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 160, 44)]; //返回按鈕 UIButton *button = [[UIButton alloc]
Time of Update: 2015-07-03
標籤://視窗漸現效果void MainWindow::closeWindowAnimation() //關閉視窗效果{ QPropertyAnimation *animation = new QPropertyAnimation(this,"windowOpacity"); animation->setDuration(500); animation->setStartValue(1); animation->setEndValue(0);
Time of Update: 2015-07-03
標籤:使用scrollview後,alignParentBottom不起效,布局不能完全展開,match_parent無效 設定scrollView的fillViewPort屬性為true Romain Guy write a little info about a ScrollView attribute that is missing from documentation :android:fillViewport=”true” . It must be set to