Time of Update: 2015-01-04
標籤: iOS7 和 iOS8 中tableview cell分割線靠左對齊的方法不一樣,特此為以後需要做筆記。 iOS7 中方法很簡單,只需要設定 _table.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0); 而iOS8 中方法需要寫一段代碼: -(void)viewDidLayoutSubviews { if ([_table
Time of Update: 2015-01-04
標籤:本文來自http://blog.csdn.net/hellogv/
Time of Update: 2015-01-04
標籤:安卓學習-資料存放區與IO-SharedPreferences 運行完後,可以在DDMS,看到這個xml檔案MainActivity.javapublic class MainActivity extends Activity implements OnClickListener{ EditText editText1; TextView textView3; SharedPreferences pre; Editor editor;
Time of Update: 2015-01-04
標籤:據外國媒體報道,Android和iOS兩大作業系統在壟斷手機和平板之後,開始向智能家居、智能汽車、客廳娛樂、物聯網等領域擴張。Google和蘋果此 前均推出了串連智能手機和車載資訊系統的平台產品。2014年12月18日,Google正計劃開發一種汽車資訊系統使用的獨立Android作業系統,未來車載 系統將可以像電腦、手機一樣獨立運行,司機無需再插入智能手機,即可享受各種互連網功能。 這是Google當前Android Auto軟體發展的重要一步。目前的Android
Time of Update: 2015-01-04
標籤:Xml代碼 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_con
Time of Update: 2015-01-04
標籤://標準輸出[self redirectSTD:STDOUT_FILENO];//錯誤輸出 //[self redirectSTD:STDERR_FILENO]; - (void)redirectNotificationHandle:(NSNotification *)nf{ NSData *data = [[nf userInfo] objectForKey:NSFileHandleNotificationDataItem];
Time of Update: 2015-01-04
標籤:本文轉自:http://www.cnblogs.com/wendingding/p/3766347.html一、UIApplication1.簡單介紹(1)UIApplication對象是應用程式的象徵,一個UIApplication對象就代表一個應用程式。(2)每一個應用都有自己的UIApplication對象,而且是單例的,如果試圖在程式中建立一個UIApplication對象,那麼將報錯提示。(3)通過[UIApplicationsharedApplication]可以獲得這個單例對
Time of Update: 2015-01-04
標籤:這篇文章主要介紹了android monkey命令詳解,Monkey 就是SDK中附帶的一個工具,該工具主要用於進行壓力測試,需要的朋友可以參考下 一、Monkey 是什嗎?Monkey 就是SDK中附帶的一個工具。 二、Monkey 測試的目的?:該工具用於進行壓力測試。 然後開發人員結合monkey 列印的日誌 和系統列印的日誌,結局測試中出現的問題。 三、Monkey 測試的特點?Monkey 測試,所有的事件都是隨機產生的,不帶任何人的主觀性。 四、Monkey 命令詳解 1).
Time of Update: 2015-01-04
標籤:架構 android 程式碼片段 json cache Volley 下載 git clone https://android.googlesource.com/platform/frameworks/volley 下載之後引入項目即可
Time of Update: 2015-01-04
標籤:最近測試報了這樣的問題, 在版本覆蓋安裝的時候會報如下crash, 實驗一下果然,具體跟進了一下,發現要必現該問題是需要條件的:1,4.0或者4.1系統2,覆蓋前Activitystack 棧中有三個以上Activity經查很多同仁遇到了同樣的問題,收集備忘於此。目前沒有太好的解決辦法。在高版本系統上或者低版本上沒有該種問題。有在排查同樣問題的兄弟們沒時間不要再去查了。意義不大。java.lang.RuntimeException: Unable to instantiate
Time of Update: 2015-01-04
標籤: Android電訊廠商資訊,由於電訊廠商號段一直增加,此處判定方法可能不能涵蓋所有號段,如果你有新的號段資訊請在下方留言,感謝!(最後更新2015.1.4) public enum MobileType { MOBILE_TYPE_NONE, // 未知 MOBILE_TYPE_CMCC, // 移動 MOBILE_TYPE_CU, // 聯通 MOBILE_TYPE_CT, // 電信 }; /
Time of Update: 2015-01-04
標籤:jni ndk java c javah 轉載請註明出處:http://blog.csdn.net/allen315410/article/details/41845701 前面幾篇文章介紹了Android
Time of Update: 2015-01-04
標籤:ios swift uiscrollview 使用者體驗 uitextfield iOS中.h//// ViewController.h// 使用contentOffset讓你的使用者註冊頁面動起來//// Created by 黃權浩 on 15-1-4.// Copyright (c) 2015年 黃權浩.
Time of Update: 2015-01-03
標籤:iosCALayerDelegate的實現(IOS)by 伍雪穎- (void)viewDidLoad { [superviewDidLoad]; CALayer *blueLayer = [CALayerlayer]; blueLayer.frame =CGRectMake(50,50,100,100);
Time of Update: 2015-01-03
標籤:ios利用旋轉實現時鐘(IOS)by 伍雪穎- (void)viewDidLoad { [superviewDidLoad]; self.secondHand.layer.anchorPoint = CGPointMake(.5,.9); self.minuteHand.layer.anchorPoint = CGPointMake(.5,.9);
Time of Update: 2015-01-04
標籤: Handler的定義: 用來接收子線程發送過來的資料,並利用該資料直接更新主線程的UI。
Time of Update: 2015-01-04
標籤:最近在調研市面上的一些android db架構,需要經常重複的輸入一堆比如adb shellcd /data/data/com.example.testandroiddb/databasessqlite3 demo.dbcreate table xxx;insert xxx;select * from xxx;... 很不方便,就想寫個指令碼來做這些重複的工作。主要的問題就是要多個shell之間執行命令。解決的辦法就是shell提供的輸入資料流功能"<"先編寫sqlite3
Time of Update: 2015-01-04
標籤:iOS中的資料存放區常用方式:1、xml屬性列表(plist);2、preference喜好設定;3、NSKeyedArchiver歸檔(需要遵守NSCodeing協議);4、SQLite 3;5、Core
Time of Update: 2015-01-04
標籤:圖片 android bitmap 右轉private void right() {// TODO Auto-generated method stubint bmpW = bm.getWidth() ; int bmpH = bm.getHeight() ;double scale =1 ;scaleW = (float)(scaleW*scale); scaleH = (
Time of Update: 2015-01-04
標籤:sharesdk 社會化組件 android sdk android分享 ios開發 【ShareSDK for Android