Time of Update: 2015-06-05
標籤:——本文適用於iOS開發中真機調試不是特別熟練的小夥伴。 1.進入https://developer.apple.com/,如,點擊Menber
Time of Update: 2015-06-05
標籤:Android4.0以後一般的全屏:getWindow().getDecorView().setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN&
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
標籤:歸檔失敗問題出在路徑上,NSHomeDirectory()NSString *stringPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex: 0]; stringPath = [stringPath stringByAppendingPathComponent:@"a.txt"]; &
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
標籤:UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panIt:)]; // 初始化手勢類[view addGestureRecognizer:panGesture]; // 將手勢類添加給view - (void)panIt:(UIPanGestureRecognizer
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
標籤:@property(nonatomic) NSInteger applicationIconBadgeNumber; // set to 0 to hide. default is 0. In iOS 8.0 and later, your application must register for user notifications using -[UIApplication registerUserNotificationSettings:] before being
Time of Update: 2015-06-05
標籤:+(NSString *) encryptUseDES:(NSString *)plainText key:(NSString *)key{ //testByte是關鍵點 NSData *data1 = [key dataUsingEncoding:NSUTF8StringEncoding]; Byte *testByte = (Byte *)[data1 bytes];
Time of Update: 2015-06-05
標籤:Android開發之視頻錄製 (2011-10-18 17:47:46)轉載▼標籤: android 視頻錄製 surfaceview 雜談分類: 3GAndroid學習筆記要使用視頻錄製功能,要用到MediaRecorder這個類,以及SurfaceView組建public class MainActivity extends Activity {public static final String TAG =
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
標籤:$apply() 和 $digest() 在 AngularJS 中是兩個核心概念,但是有時候它們又讓人困惑。而為了瞭解 AngularJS 的工作方式,首先需要瞭解 $apply() 和 $digest() 是如何工作的。這篇文章旨在解釋 $apply() 和 $digest() 是什麼,以及在日常的編碼中如何應用它們。 探索 $apply() 和 $digest() AngularJS 提供了一個非常酷的特性叫做雙向資料繫結 (Two-way Data Binding)
Time of Update: 2015-06-05
標籤:ios 本地通知 本地推送 uilocalnotification 註:按Home鍵讓App進入後台運行時,方可查看通知。- (BOOL)application:(UIApplication *)application
Time of Update: 2015-06-05
標籤:語音辨識 訊飛語音 android 語音合成 Android語音播報、後台播報、語音辨識本文介紹使用訊飛語音實現語音播報、語音辨識功能。訊飛開放平台:http://www.xfyun.cn/index.php/default/index程式:簡單的XML布局<?xml version="1.0"
Time of Update: 2015-06-05
標籤:android 認證 android-studio 命令 簽名 今天要用到簽署憑證的MD5,但是這個只有在第一次產生的時候我看到了,這可怎麼辦呢,幸虧我們有google,我們運行下面的命令就OK了。keytool -list -v -keystore 簽署憑證的路徑 Eclipse
Time of Update: 2015-06-05
標籤: UIDatePicker *picker = [[UIDatePicker alloc]initWithFrame:CGRectMake(0, 0,[UIParam widthScreen] ,50 )]; picker.minimumDate = [NSDate date]; picker.maximumDate = nil; picker.backgroundColor = [
Time of Update: 2015-06-05
標籤:如何建立自訂的風格和主題:.在res/values