Time of Update: 2015-03-12
標籤:今天要項目想實現一個ListViewAnimation的功能,網上有個開源的解決方案https://github.com/nhaarman/ListViewAnimations這github上的開源項目是最新的代碼,本文所用到的是之前的版本的ListViewAnimations資源地址:http://download.csdn.net/detail/fancylovejava/8493843,可以去免費下載這個項目解壓後然後匯入到eclipse中去,需要添加v7-appcompat的庫檔案
Time of Update: 2015-03-12
標籤:ios navigationbar NavigationBar底部的黑線是一個UIImageView上的UIImageView。if ([self.navigationController.navigationBarrespondsToSelector:@selector( setBackgroundImage:forBarMetrics:)]){ NSArray
Time of Update: 2015-03-11
標籤:-來自收藏總結 綜合了好多的常見錯誤1:clang failed with exit code 254一:檢測代碼中 是否 有 NSLog 列印了 返回 void 的值. 2:Verify exit code of build task with internal identifier ‘CopyPNGFile 123.png‘一:將出錯的png,用PhotoShZ喎?"http://www.2cto.com/kf/ware/vc/" target="_blank" class=
Time of Update: 2015-03-12
標籤:隨著iOS8系統的發布,一個全新的頁面UI布局概念出現,這個新特性將顛覆包括iOS7及之前版本的UI布局方式,這個新特性就是Size Class。Size Class配合Auto Layout可以解決所有(包括iPhone及iPad)iOS裝置螢幕尺寸及旋轉螢幕時候的UI適配問題 。 二、為什麼要使用Size Class直到iPhone6發布後,目前iOS裝置的螢幕尺寸已經有4種了, iPhone6沒出現之前,還可以通過代碼來適配兩種尺寸的UI,但iPhone6發布後,
Time of Update: 2015-03-11
標籤:http://blog.csdn.net/huiguixian/article/details/39928027 從Android developer copy過來,留作筆記的。Platform VersionAPI LevelVERSION_CODENotesAndroid 4.419KITKATPlatform HighlightsAndroid 4.318JELLY_BEAN_MR2Platform HighlightsAndroid 4.2,
Time of Update: 2015-03-12
標籤: 上述問題主要是java路徑的問題,這裡主要給出解決方案,至於為什麼這麼解決的,大家可以學學bat語言。想問的可以留言我。 dx.bat 根據安裝目錄,我的是D:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.2.2\dx.bat。然後用筆記本開啟,在29~33行(我用的是edit
Time of Update: 2015-03-12
標籤:Trapping Rain Water問題:Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.思路: 數組的特別,拿到最高點的值,左右兩邊再分別測試My Code:public class Solution {
Time of Update: 2015-03-11
標籤:nagios notifications disable 今天上午來了發現nagios頁面如下狀態:650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/5B/20/wKiom1T_tZfQV2NXAACsSbXi0vg142.jpg" title="1.png"
Time of Update: 2015-03-11
標籤:android資料庫 sqlite資料庫 greendao sqliteopenhelper android
Time of Update: 2015-03-11
標籤: public static int getStatusBarHeight(Context context){ Class<?> c = null; Object obj = null; Field field = null; int x = 0, statusBarHeight = 0; try { c =
Time of Update: 2015-03-11
標籤: Application類 在Android中,啟動一個應用,首先會初始化Application,然後再通過它檢查AndroidManifest.xml資訊清單檔,選擇須要首先啟動的Activity。
Time of Update: 2015-03-11
標籤:轉載自風宇沖Unity3D教程學院 簡介Reflection Mapping,又叫Environment Mapping。對應TexGen的SphereMap和CubeReflect。是最快的reflect周圍環境的演算法最早出現的是Sphere Mapping,之後被Cube Mapping取代。Reflection Mapping比射線追蹤(Ray Tracing)高效得多Reflection
Time of Update: 2015-03-11
標籤:可能有些人也有過類似需求,一般都會選擇使用其他的方式如Spring-JDBC等方式解決。 能否通過MyBatis實現這樣的功能呢? 為了讓通用Mapper更徹底的支援多表操作以及更靈活的操作,在2.2.0版本增加了一個可以直接執行SQL的新類SqlMapper。 通過這篇部落格,我們來瞭解一下SqlMapper。 SqlMapper提供的方法 SqlMapper提供了以下這些公用方法: Map<String,Object> selectOne(String sql)
Time of Update: 2015-03-11
標籤:object-c 面試 ios 這段時間一直忙著面試找工作,面試的過程中暴露出自己一些問題,還是基礎不夠紮實,雖然做了三年IOS開發了,但是僅僅是編碼上和架構上還可以,基礎的東西好多都不知道,太不應該了,所以決心好好把IOS基礎的東西都補一補,下面把面試問的問題羅列一下(共參考)。 1.
Time of Update: 2015-03-11
標籤:一、字串字串是String類型的資料,用雙引號""包住文字內容 let website = "http://www.wendingding.com"1.字串的常見操作(1)用加號 + 做字串拼接let scheme = "http://"let path = “www.wendingding.com”let website = scheme + path//
Time of Update: 2015-03-11
標籤:擷取手機裡面的WIFI密碼??剛看到的時候我也沒明白這個有什麼用,自己的手機不會不知道wifi密碼吧,所以到現在我也沒用到個這個功能 ,在這裡權當記錄一下,以備以後再找。話說怎麼擷取WIFI密碼還得從小米手機說起,記得小米推出了個Wifi密碼共用的功能;比如在一個咖啡廳,只要一個人向服務員擷取了密碼,然後他開啟wifi密碼共用,那麼其他人就可以直接連上wifi,而不需要再向服務員詢問密碼。但是後來安全什麼的東西,最後這項功能好像也就無疾而終了。。不過我們還是可以看一下小米是怎麼實現的:1.
Time of Update: 2015-03-11
標籤:ios 開發 設定 模式 效果 轉自廖雪峰在iOS開發中,如果使用UINavigationController,配合Storyboard+Push模式的Segue,預設情況下,可以直接實現左右推出的View轉場效果。但是,如果不使用UINavigationController時,把Segue設定為Push,運行就會直接報錯
Time of Update: 2015-03-11
標籤:android4.4 init 介面 可執行檔 service 近日,將第三方可執行檔封裝成介面,移植到了系統中。現將曲折的成功之路做一個總結,與大家共用。軟體平台:android硬體平台:marvell第三方可執行檔:AA,
Time of Update: 2015-03-11
標籤:two points array Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.For example, Given [0,1,0,
Time of Update: 2015-03-12
標籤:首先需要子類化一個navigationController的子類,在init方法中對定製nav的一些基本需求進行設定 1 - (instancetype)initWithRootViewController:(UIViewController *)rootViewController 2 { 3 if (self = [super initWithRootViewController:rootViewController]) { 4 //