Time of Update: 2015-06-03
標籤: 1 /** 2 * 根據手機的解析度從 dp 的單位 轉成為 px(像素) 3 */ 4 public int dipTopx(Context context, float dpValue) { 5 final float scale = context.getResources().getDisplayMetrics().density; 6 return (int) (dpValue *
Time of Update: 2015-06-03
標籤://第一種,利用數組的sortedArrayUsingComparator調用 NSComparator ,obj1和obj2指的數組中的對象NSComparator cmptr = ^(id obj1, id obj2){ if ([obj1 integerValue] > [obj2 integerValue]) { return
Time of Update: 2015-06-03
標籤:Mark一下:動畫可以通過XML或Android代碼來實現。Animation動畫效果的實現可以通過兩種方式進行實現,tweened animation (漸層動畫)和frame by frame animation (畫面轉換動畫)。 android提供的animation有4類:tweened animation漸層動畫有以下兩種類型:1.alpha 漸層透明度動畫效果2.scale 漸層尺寸伸縮動畫效果frame by frame animation
Time of Update: 2015-06-03
標籤:移動互連網的飛躍也讓很多科技型人才找到了新的發展起點,提升自身的科技技能,讓自己的未來獲得提升,是很多科技型人才的根本起點。很多開發人員都紛紛轉型到Android,這些傳統的開發人員想要從事移動互連網行業的開發,需要參加培訓,參加Android培訓來提升自身的技術實力,傳智播客Android培訓行業的領導者,為各大企業很多企業輸送了大量的Android視頻
Time of Update: 2015-06-03
標籤:使用AF請求網路:在AppDelegate.h裡面添加類方法:+
Time of Update: 2015-06-03
標籤:sharepoint 2013 development ?部落格地址:http://blog.csdn.net/FoxDave除非開啟了SharePoint網站的匿名訪問,否則對於入站的請求,必須要有一個身分識別驗證的過程(Authentication),這個很重要。SharePoint身分識別驗證依賴於目錄服務(如AD、identity
Time of Update: 2015-06-03
標籤:android 抽屜 drawer Android DrawerLayout 抽屜DrawerLayout 在supportV4 Lib中,類似開源slidemenu一樣,DrawerLayout父類為ViewGroup,自訂群組件基本都是擴充這個類。 android.support.v4.widget.DrawerLayout下面是個簡單的用法示範。點左上方的按鈕
Time of Update: 2015-06-03
標籤:ios 線程 接上一篇 2、NSOperation NSOperation是一個抽象類別,本身並沒有辦法去直接使用,如果我們要使用它,就要去使用它的子類。IOS已經給我們提供了兩個已經實現好的子類,NSInvocationOperation和NSBlockOperation。 對於這兩個子類雖然IOS本身提供了start方法,不過我們一般不去直接使用它而需要藉助另外一個類 NSOperationQueue
Time of Update: 2015-06-03
標籤:android 多線程 使用HttpURLConnectionHttpURLConnection繼承自URLConnection,也可用於向指定的網站發送GET請求POST請求。方法:int getResponseCode ():擷取伺服器的響應代碼String getResponseMessage ():擷取伺服器的響應訊息String getResponseMethod ():擷取發送請求的方法void
Time of Update: 2015-06-03
標籤:android asynctask loader 非同步 本文主要探討Android平台提供的各種非同步載入機制,包括它們的適用情境、使用方法等。1.
Time of Update: 2015-06-03
標籤:簡單總結一下遠程推送訊息的相應情況1. 當程式處於關閉狀態收到推送訊息時,點擊表徵圖會調用- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 這個方法,那麼訊息給通過launchOptions這個參數擷取到。2. 當程式處於前台工作時,這時候若收到訊息推送,會調用-
Time of Update: 2015-06-03
標籤:首先, DrawerLayout這個類是在Support Library裡的,需要加上android-support-v4.jar這個包。 然後程式中用時在前面匯入import android.support.v4.widget.DrawerLayout; 如果找不到這個類,首先用SDK Manager更新一下Android Support Library,然後在Android
Time of Update: 2015-06-03
標籤:android task 首先我們來看下Task的定義,Google是這樣定義Task的:a task is what the user experiences as an "application." It‘s a group of related activities, arranged in a stack. A task is a stack of activities, not a
Time of Update: 2015-06-03
標籤:GridView的一些特殊屬性: 1.android:numColumns=”auto_fit” //GridView的列數設定為自動2.android:columnWidth=”90dp
Time of Update: 2015-06-03
標籤: 學習IOS開發,現在做一個簡單的QQ登陸介面的開發,如: 1.1 建立項目和設計介面,介面就如,兩個Label,兩個個text,加上一個Button登陸按鍵,介面比較簡單,如。 2.2 說下屬性設定,在輸入QQ號碼的文字框裡,在屬性Placeholder中輸入“請輸入QQ號嗎”,這個屬性當程式起動時,就會自動的在QQ號碼的輸入文字框中顯示。2.3
Time of Update: 2015-06-03
標籤:在storyboard/xib檔案中實現自動布局 autolayout 1、注意事項autolayout和frame屬性是有衝突的,所以如果準備使用autolayout,就不要再代碼中對控制項的frame屬性進行操作。設定autolayout必須設定完全,必須包括位置資訊和尺寸資訊。也就是說必須有寬高和座標位置,缺一不可。 2、簡單樣本 兩個view(redView和blueView),等高等寬,redView距離左邊和下邊間距都是20,距離blueView
Time of Update: 2015-06-02
標籤://FIRSTtypedef void(^TellPicBlock)(NSString *albumPic) ;//typedef定義BLOCK@interface PersonProfileViewController : UITableViewController @property (nonatomic,copy) TellPicBlock TBlock;//聲明一個BLOCK名字為T
Time of Update: 2015-06-02
標籤:轉載請標明出處: http://blog.csdn.net/yujun411522/article/details/46334057本文出自:【yujun411522的部落格】1.2 Android體繫結構體繫結構按照兩種視角來分析:靜態和動態視角1.2.1 靜態視角的體繫結構可以分為四層application、application framework、lib和runtime、linux
Time of Update: 2015-06-02
標籤:androidProgressBar 簡介ProgressBar是一種很常用的Ui,用於給複雜的操作顯示進度,提供更好的使用者相應。使用setProgress()incrementProgressBy()來設定進度和顯示進度的增加或減少,正數表示增加,負數表示減少。ProgressBar的風格 ProgressBar程式碼範例布局代碼<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Time of Update: 2015-06-02
標籤:1.加文字 -(UIImage *)addText:(UIImage *)img text:(NSString *)text1 { //get image width and height int w = img.size.width;