Time of Update: 2015-12-30
標籤:inline static UIColor* getColorFromHex(NSString *hexColor){ if (hexColor == nil) { return nil; } unsigned int red, green, blue; NSRange range; range.length = 2; range.location = 1; [[NSScanner
Time of Update: 2015-12-29
標籤:緣起 上一篇博文中講到了幾種實現全螢幕顯示Activity內容的方法。然而實際在實現中發現了一些問題,在本篇博文中進行總結下。首先交代一下開發環境,本人使用的是Android Studio 1.5.1,因此使用Eclipse ADT開發或者低版本的SDK的時候可能不會碰到這個問題。首先看onCreate()方法中的實現代碼:1 @Override2 protected void onCreate(Bundle savedInstanceState) { 3
Time of Update: 2015-12-29
標籤:轉載請標明出處:http://blog.csdn.net/lmj623565791/article/details/41096639 。本文出自:【張鴻洋的部落格】1、概述關於Eventbus的介紹。前面已經有兩篇:Android EventBus實戰 沒聽過你就out了和Android EventBus原始碼解析 帶你深入理解EventBus 。
Time of Update: 2015-12-29
標籤:Gif調研總結:有三個開源項目實現gif,1、android-gif-drawable (https://github.com/koral--/android-gif-drawable) 2、ImageViewEx(https://github.com/frapontillo/ImageViewEx)
Time of Update: 2015-12-29
標籤:Android開發中會用到檔案儲存體,今天來學習下。先改下布局介面: 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="match_parent" 4 android:layout_height="match_parent" 5
Time of Update: 2015-12-29
標籤:下面是這個類的一些功能:1.設定icon上的數字表徵圖 //設定主介面icon上的數字表徵圖,在2.0中引進, 預設為0 [UIApplicationsharedApplication].applicationIconBadgeNumber = 4;2.設定搖動手勢的時候,是否支援redo,undo操作 //搖動手勢,是否支援redo undo操作。 //3.
Time of Update: 2015-12-29
標籤: //擷取螢幕的寬度 public static int getScreenWidth(Context context) { WindowManager manager = (WindowManager)
Time of Update: 2015-12-28
標籤:Android 開源組件 ----- Android LoopView無限自動輪轉控制項2015-12-28 15:26 by 傑瑞教育, 32 閱讀, 0 評論, 收藏, 編輯一、組件介紹 App產品中資訊列表頭部都會有自動輪轉的廣告圖片,使用ViewPager可以實現但編碼比較麻煩,我們可以採用使用LoopView開原始檔控制來完成, LoopView是一個強大的輪轉大圖控制項,並且提供了許多配置方法足以滿足你的應用需求二、環境配置 如果您的項目使用 Gradle 構建,
Time of Update: 2015-12-28
標籤: 參考:http://www.cocoachina.com/design/20151225/14789.html0. 內容概述基礎與本質:說明普遍意義上的UI系統的三大模組,讓讀者從整體上對UI系統有清楚的認識。View:深入View的內部機制,View與Layer之間的關係,以及Offscreen
Time of Update: 2015-12-29
標籤: #import <UIKit/UIKit.h>@interface AppDelegate : UIResponder <UIApplicationDelegate>@property
Time of Update: 2015-12-28
標籤:觀察者模式也被稱作發布/訂閱模式,觀察者模式定義了一種一對多的依賴關係,讓多個觀察者對象同時監聽某一個主題對象。這個主題對象在狀態發生變化時,會通知所有觀察者對象,使它們能夠自動更新自己。觀察者模式中,一個目標物件管理所有相依於它的觀察者物件,並且在它本身的狀態改變時主動發出通知。iOS開發中最明顯的觀察者模式就是KVO索引值對觀察,如果對於KVC和KVO不是很熟悉,可以參考本人之前部落格iOS開發-KVC和KVO的理解。關於設計模式網上的介紹多如牛毛,參考資料隨手可查,簡單的使用OC實現
Time of Update: 2015-12-27
標籤:問題引出: StringBuilder sqlQuery = new StringBuilder(); sqlQuery.Append("SELECT COUNT([ProductID]) FROM ~~where [IsDelete]=‘F‘ );1.StringBuilder和String的區別 String aa="123456"; aa+="789"; StringBuilder text=new
Time of Update: 2015-12-28
標籤:Question:When I try to build my app in Xcode, I get this error message:PCH file built from a different branch ((clang-425.0.24)) than the compiler ((clang-425.0.27))Answer:This is often a caching problem. Usually it can be resolved by holding
Time of Update: 2015-12-27
標籤:1 Intent分為兩大類,顯式和隱式。顯式事件,就是指通過 component Name 屬性,明確指定了目標組件的事件。比如我們建立一個Intent,指名道姓的說,此事件用於啟動名為"com.silenceburn.XXXX”的Activity,那麼這就是一個顯式事件。隱式事件,就是指沒有 component
Time of Update: 2015-12-28
標籤:金立 超級續航 m5plus2015年12月21日晚,伴隨著Beyond樂隊成員家駒加強兄弟的深情對唱《海闊天空》,金立M5 Plus發布會正式落下了帷幕,金立這個一直顯得低調的手機廠家在世人面簽展現出了全新的面貌。金立董事長劉立榮在會後接受群訪時關於“性價比”的談話,一時在手機界成為了熱門的話題。650) this.width=650;"
Time of Update: 2015-12-28
標籤: 1 #import "ViewController.h" 2 #import "SecondViewController.h" 3 4 @interface ViewController () 5 6 @end 7 8 @implementation ViewController 9 10 11 // 視圖控制器的生命週期 12 // 視圖控制器的載入方法 13 // 模態視圖方法 14 15 /* 16 // 視圖控制器的載入方法
Time of Update: 2015-12-28
標籤:只有iOS9和iPhone6 plus模擬器上TableView分割線不會顯示,後來終於找到了原因:由於iPhone6 plus的解析度較高,開發的時候同常都使用command + 3 或者 command + 4 縮小模擬器顯示,這個時候就相當於把plus的解析度壓縮了所以我們會看不到分割線,解決辦法就是把模擬器放大就可以了,選中模擬器按command + 1把模擬器放大就可以了。iOS9TableView分割線預設不顯示,只有滑動的時候才顯示 解決辦法
Time of Update: 2015-12-27
標籤:1、圖表引擎 - AChartEngineAChartEngine是一款基於Android的圖表繪製引擎,它為Android開發人員提供了非常多有用的圖表繪製工具類,假設你須要在Android應用中加入可視化統計的功能,那麼AChartEngine是一個不錯的選擇。官方網站:https://code.google.com/p/achartengine/2、圖表引擎
Time of Update: 2015-12-27
標籤:iOS
Time of Update: 2015-12-27
標籤:+(NSString *) stringDeleteString:(NSString *)str{ NSMutableString *str1 = [NSMutableString stringWithString:str]; for (int i = 0; i < str1.length; i++) { unichar c = [str1 characterAtIndex:i]; NSRange range = NSMakeRange(i,