Time of Update: 2016-05-28
標籤:viewWillAppear:視圖即將可見時調用。預設情況下不執行任何操作viewDidAppear:視圖已完全過渡到螢幕上時調用viewWillDisappear:Calledafter the view was dismissed, covered or otherwise hidden. Defaultdoesnothing視圖被駁回後調用,覆蓋或以其他方式隱藏。預設情況下不執行任何操作loadView;Thisis where subclasses should create
Time of Update: 2016-05-28
標籤: // Get the instance of the UITextField of the search barUITextField *searchField = [searchBar valueForKey:@"_searchField"];// Change search bar text colorsearchField.textColor = [UIColor redColor];// Change the search bar placeholder
Time of Update: 2016-05-28
標籤: 下面直接來看下主控制類代碼 import java.io.File; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Bitmap; import
Time of Update: 2016-05-27
標籤:docker aufs devicemapper overlayfs 最近一直在研究Mesos, Marathon跟Docker結合的容器雲平台,Mesos
Time of Update: 2016-05-27
標籤:js<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>CSS-DOM</title><link rel="stylesheet" type="text/css" href="10.css" ><script src="10.js">&l
Time of Update: 2016-05-27
標籤:call與apply都可以改變js的this指向,兩者最主要的區別就是使用時傳參的不同,apply的參數可以以數組的形式傳進來,但是call方法的參數必須要一個一個的傳進來,就像這樣。func.call(this, arg1, arg2);var arr= [arg1, arg2];func.apply(this,arr);可以看出call與apply主要有兩個參數,第一個是改變this的指向,如下:function log(){
Time of Update: 2016-05-27
標籤:http://blogger.gtwang.org/2013/10/awesome-indicator-applets-for-ubuntus-unity-desktop.htmlhttp://www.howtogeek.com/118908/10-awesome-indicator-applets-for-ubuntus-unity-desktop這裡搜集各種 Ubuntu Linux 中 Unity 常用的指標(indicator)與小工具。如果你是 Ubuntu Linux 的老手,
Time of Update: 2016-05-27
標籤: <GridLayout android:layout_width="match_parent" android:layout_height="match_parent" android:columnCount="1" > <HorizontalScrollView android:layout_width="match_parent"
Time of Update: 2016-05-27
標籤:facebook google 新浪微博 twitter 新的遊戲 我從2011年開始接觸iOS開發,當時使用的是SDK是ios4,經過蘋果工程師多年的努力,現在已經升級到ios9.3.2,這篇博文我就說說這些版本中對於開發人員所產生的新技術。iOS5於2011年9月份發布,產生的新技術有:1、支援ARC,增加了stron
Time of Update: 2016-05-27
標籤:在iOS開發中,正則一直是最常用的,但也是一直記不住的,現在做一些簡單的總結我們在網上找的正則,要有‘\‘,這個在iOS是轉義符,需要‘\\‘這樣int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... // 1.建立Regex // []:找到內部的某一個字串 // "[a-z]" :小寫 // "[a-
Time of Update: 2016-05-27
標籤:全域引用:BOOL state其他地方:extern BOOL state;兩種特例:@synthesize id=_id;@synthesize descriptoin=_description;_和self的區別:有setter和getter方法(@property(nomatic ,passion) UIView *view)時,兩者堵可以,當只是屬性({ e.g.: UIView *_view })時,只能”_”retain
Time of Update: 2016-05-27
標籤: 一.多次快速點擊一處功能入口: 該測試方法可以在某些應用中開啟倆次目標介面,舉一些具體一點的例子: 1.比如現在很多APP需要登陸,如果開啟了倆次登入頁面,就容易造成登入成功後應用跳轉介面又是登入介面,第二次登入造成的後果未知,最簡單的後果就是,使用者會覺得該應用需要登入倆次,不宜用 2.輸入使用者名稱密碼後倆次點擊登入按鈕,某些應用會開啟倆次登入成功介面,這個時候如果需要設定手勢密碼,那麼就會做倆次設定作業,後果未知,因對應程式邏輯不同而導致後果不同 3.多次開啟某一介面A後
Time of Update: 2016-05-27
標籤:轉自 http://www.cocoachina.com/ios/20141229/10783.htmlTableView不顯示沒內容的Cell怎麼辦?類似這種,我不想讓下面那些空的顯示.很簡單.1self.tableView.tableFooterView = [[UIView alloc] init];試過的都說好.加完這句之後就變成了這樣.自訂了leftBarbuttonItem左滑返回手勢失效了怎麼辦?123456 &nb
Time of Update: 2016-05-29
標籤:小代碼<Html><Head><title>能用滑鼠拖放的圖片</title></Head><Body bgColor="#ffffff" onload="init()"> <SCRIPT language=JavaScript>drag = 0move = 0function init()&n
Time of Update: 2016-05-27
標籤:Android自助餐之SoundPoolAndroid自助餐之SoundPoolSoundPool介紹主要方法使用方法使用樣本SoundPool介紹SoundPool相對於MediaPlayer,用前者播放短但反應速度要求高的聲音以及同時播放多個聲音。SoundPool使用獨立的線程載入聲音,SoundPool.OnLoadCompleteListener回調載入完成後的方法。主要方法載入聲音。傳回值為soundID。 priority參數無效,置1 若檔案大於1M,則只載入前1M
Time of Update: 2016-05-27
標籤:Android自助餐之AsyncTask[toc] 耗時操作可以使用AsyncTask。建立AsyncTask需要傳遞三個泛型:Params、Progress、Result。Params啟動任務執行的輸入參數,比如HTTP請求的URLProgress背景工作執行的百分比Result後台執行任務最重返回的結果使用AsyncTask需要重寫的方法doInBackground()後台執行比較耗時的操作。
Time of Update: 2016-05-27
標籤:Android自助餐之自訂控制項(一)從layout自訂控制項Android自助餐之自訂控制項一從layout自訂控制項從layout自訂控制項從layout自訂控制項layout中建立一個layout<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Time of Update: 2016-05-27
標籤:Android自助餐之adb使用情境Android自助餐之adb使用情境命令列表命令列表adb devices 列出所有的裝置adb start-server 開啟adb服務adb kill-server 關閉adb服務adb logcat 查看Logadb shell 掛載到Linux的空間 adb install <應用程式(加副檔名)> 安裝應用程式adb –s <模擬器名稱> install <應用程式(加副檔名)>
Time of Update: 2016-05-27
標籤:Android自助餐之XMLAndroid自助餐之XML序列化儲存pull解析序列化儲存//初始化一個檔案和xml序列化對象XmlSerializer serializer=Xml.newSerializer();File file=new File("/path/","test.xml");FileOutputStream os=new
Time of Update: 2016-05-27
標籤:Android自助餐之Jni(五)進階Android自助餐之Jni五進階C2C待完善函式宣告方法調用使用androidLog模組化類型轉換操作bitmap其他C2C++(待完善)函式宣告Java類:package.name.ClassName.methodName();Java方法:public native String methodName(String value)C:JNIEXPORT jstring JNICALL