Time of Update: 2015-06-05
標籤:——本文適用於iOS開發中真機調試不是特別熟練的小夥伴。 1.進入https://developer.apple.com/,如,點擊Menber
Time of Update: 2015-06-05
標籤:!!android:inputType參數類型說明 android:inputType="none"--輸入一般字元 android:inputType="text"--輸入一般字元 android:inputType="textCapCharacters"--輸入一般字元 android:inputType="textCapWords"--單詞首字母大小 android:inputType="textCapSentences"--僅第一個
Time of Update: 2015-06-05
標籤:捷徑 <!--[if !supportLists]-->0. Ctrl + 1 (快速修複)<!--[if !supportLists]-->1. Ctrl + D (刪除當前行)<!--[if !supportLists]-->2. Ctrl + Alt + ↓(複製當前行到下一行)<!--[if !supportLists]-->3. Alt + / 或者說是 Ctrl +
Time of Update: 2015-06-05
標籤:NSFileManeger檔案管理工具提供許多通用的檔案操作,使用者可以通過使用共用的檔案管理對象(NSFileManager *fm = [NSFileManager defaultManager];);ios和mac os x 10.5以後,使用者可以建立一個唯一的檔案管理工具委派物件。檔案管理工具可以用來 定位 建立 拷貝 移動 檔案和檔案夾。擷取 檔案或檔案夾 屬性(大小,修改日期,許可權),還可以用來改變 檔案和檔案夾的屬性。檔案管理工具支援 NSURL 和 NSString
Time of Update: 2015-06-05
標籤:原文地址:http://blog.csdn.net/gf771115/article/details/7718403NSError *error;// NSString *path = [[NSBundle mainBundle] pathForResource:@"testxml" ofType:@"xml"];// NSString *content = [[NSString alloc]
Time of Update: 2015-06-05
標籤:一
Time of Update: 2015-06-05
標籤:寶寶巴士安卓架構介紹本文從以下幾個方面介紹架構:1、架構的設計思路2、這樣設計的好處3、架構的結構圖4、每個library的介紹5、結合打包工具來使用 架構的設計思路因為Android有Library(組件)的概念,也就是可以把許多的功能單獨剝離成組件,需要的時候加入到項目中。所以,我們把獨立的功能模組單獨做成了一個一個的Library。如:說明:Bbframework是架構的項目。BBModule_Plugin打頭的,都是Library組件。設計的好處1、實現了需要什麼用什麼如
Time of Update: 2015-06-05
標籤:下拉重新整理 uirefreshcontrol 1.UIRefreshControl必須要在IOS6.0以後才能使用,同時他只能在UITableViewController類中才可以使用2.使用比較簡單 self.refreshControl = [[UIRefreshControl alloc]initWithFrame:CGRectMake(0, 0, self.tableView.
Time of Update: 2015-06-05
標籤:今天做了下檔案儲存體的小案例,並藉此鞏固一下Android中的單元測試及MVC的設計模式..AndroidMVC模式如下步驟1: 布局編輯:布局頁面及代碼如下:<Button android:id="@+id/btnSave" android:layout_width="wrap_content" android:layout_height="wrap_content"
Time of Update: 2015-06-05
標籤:調用new Uint8Array()時QQ瀏覽器將直接返回參數列表,比如new Uint8Array(a)將返回[a],比如new Uint8Array(a, b)將返回[a, b],比如new Uint8Array(a, b, c)將返回[a, b,
Time of Update: 2015-06-05
標籤: udacity android 學習筆記: lesson 4 part b乾貨店打雜的 /titer1 /Archimedes 出處:https://code.csdn.net/titer1 聯絡:1307316一九六八 聲明:本文採用下面協議進行授權: 自由轉載-非商用-非衍生-保持署名|Creative Commons BY-NC-ND 3.0 ,轉載請註明作者及出處。
Time of Update: 2015-06-05
標籤:iOS7以後系統提供了顯示html標籤的方法UIKIT_EXTERN NSString *const NSHTMLTextDocumentType NS_AVAILABLE_IOS(7_0);直接上代碼NSString *str = @"<font color=\"#6c6c6c\">滿20減5 滿40減15,還剩<font color=\"#ff9147\">113天";UILabel *label = [[UILabel alloc]
Time of Update: 2015-06-05
標籤:項目中需要用到在wifi這一塊,掃描附近wifi,然後一個個遍曆所有wifi,並且嘗試串連,所以就在這裡需要每串連一個wifi進行阻塞,當串連失敗的時候才進行嘗試下一個串連,當串連成功時則break。 我們仍然可以在回調方法中加一個標識:如int flag = 0;public void callback(){flag = 1;}//阻塞的方法中可以這麼寫public void fun() {... while (true) {
Time of Update: 2015-06-05
標籤:為了加強滑鼠響應事件,Android提供了GestureDetector手勢識別類。通過GestureDetector.OnGestureListener來擷取當前被觸發的操作手勢(Single Tap Up、Show Press、Long Press、Scroll、Down、Fling),具體包括以下幾種:boolean onDoubleTap(MotionEvent e) 解釋:雙擊的第二下Touch down時觸發 boolean
Time of Update: 2015-06-05
標籤: 在iOS5以下版本使用以下方法:【IOS5.1+之後不能使用此方法,iOS8的跳轉方法已找到見下方,iOS7的正在摸索,歡迎大家給出觀點意見】 通過URL Scheme的方式開啟內建的Settings,代碼如下[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"]];
Time of Update: 2015-06-05
標籤:1.在service中重寫下面的方法,這個方法有三個傳回值, START_STICKY是service被kill掉後自動重寫建立 @Override public int onStartCommand(Intent intent, int flags, int startId) { return START_STICKY; }---------------- @Override public int onStartCommand(
Time of Update: 2015-06-05
標籤: iOS
Time of Update: 2015-06-05
標籤:大家都知道,service和activity都是運行在UI線程中,逾時的資料讀取和網路耗時等操作必須建立線程,下面說說service中執行新線程的幾種方式。1.傳統的java方式我們都知道 java中建立線程可以繼承Thread類,也可以implement Runnable介面。實質都是實現Runnable的run方法,此處底層應該是jvm識別run這個方法分配並且建立了線程。run方法只是準備好了新線程的資源,要調用start() native方法才能啟動線程。1 public
Time of Update: 2015-06-05
標籤:ios 本地通知 本地推送 uilocalnotification 註:按Home鍵讓App進入後台運行時,方可查看通知。- (BOOL)application:(UIApplication *)application
Time of Update: 2015-06-05
標籤:如何建立自訂的風格和主題:.在res/values