Time of Update: 2015-11-01
標籤: 使用NavigationViewController進行頁面跳轉時,應該使用pushViewController方法來跳轉至下一頁面,這樣的話,下一頁面同樣在NavigationViewController容器中。 1、跳轉到下一頁面:AloneSetPrizeViewController *setPrize = [[AloneSetPrizeViewController alloc]
Time of Update: 2015-11-02
標籤:5.其他ndk 錯誤運行javac 產生class檔案後, 需要產生標頭檔之前,輸入set classpath=D:\eclipse_workspace\ZNDKTest\src,到項目的src根目錄下,然後運行javah -jni com.example.zndktest.JniClient如此,問題解決##### http://www.tuicool.com/articles/zI3uyqi Android 開發最佳實務com.futurice.project├─
Time of Update: 2015-11-02
標籤:1.快速鍵android studio 快速鍵 * 清除無效包引用Option + Control + O * command + o 快速定位類ActionMac OSXWin/Linux注釋代碼(//)Cmd + /Ctrl + /注釋代碼(/**/)Cmd + Option + /Ctrl + Shift + /格式化代碼Cmd + Option + LCtrl + Alt + L清除無效包引用Option + Control + OAlt + Ctrl + O尋找Cmd +
Time of Update: 2015-11-02
標籤:第三方外掛程式和類庫Glide Android 圖片載入和緩衝庫http://stormzhang.com/android/2015/05/26/android-tools/ 外掛程式 ButterKnife Zeleznyhttp://www.tuicool.com/articles/Q3mmay Android Butterknife Zelezny GsonFormat 收集整理Android開發所需的Android
Time of Update: 2015-11-02
標籤:1.適配基礎知識螢幕尺寸 螢幕對角線的長度 單位 英寸 1英寸=2.54厘米 不太重要螢幕解析度 橫縱向上的像素點 單位 px 1px = 1像素點 解析度越高 像素越好 縱向寬度 * 橫向寬度 1920 * 1080螢幕像素密度 每英寸上的像素點數 單位 dpi 2.Nexus 5螢幕 4.95 inch1920 * 1080 DPI = 445 1920^2 + 1080^2 = 再開方 對角線上的像素點 除以 4.95 = 44
Time of Update: 2015-11-02
標籤:Nowdays, Single page apps are becoming increasingly popular among the fornt-end developers. It is the time to say goodbye with refreshing the whole page due to clicking on a single link. It helps to speed up out web application and improve
Time of Update: 2015-11-02
標籤: IOSAndroid系統架構基於UNIX基於Linux虛擬機器系統安全性安全、穩定安全性略低、漏洞較多開發難易度強大的SDKSDK也不差是否開源不開源開源裝置的種類iphone、ipad等數不清的裝置類型使用者人群消費能力較高的使用者各種使用者人群背後的BossAppleGoogle市集AppStoreGooglePlay為什麼要選擇IOS
Time of Update: 2015-11-02
標籤:1.
Time of Update: 2015-11-02
標籤:1、題目名稱 Happy Number(快樂數) 2、題目地址 https://leetcode.com/problems/happy-number/ 3、題目內容 英文: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive integer,
Time of Update: 2015-11-02
標籤: Android Activity和Fragment的轉場動畫 Activity轉場動畫 Activity的轉場動畫是通過overridePendingTransition(int enterAnim, int exitAnim)實現的。 這個方法是API Level 5
Time of Update: 2015-11-02
標籤:網上其他人寫的日曆類功能都很齊全,比較繁雜,對於想看看日曆基礎實現然後自己繪製日曆的我來說不太方便,就自己整理了一個極精簡的日曆出來,大家看了之後應該能多少理解日曆該怎麼自訂,很簡單。我的小demo的源碼 裡邊有詳細的注釋 日曆類初始化 //初始化日曆類,並設定日曆類的格式是陽曆若想設定中國日曆設定為NSChineseCalendar myCalendar =
Time of Update: 2015-11-01
標籤:
Time of Update: 2015-11-01
標籤:2.4版本的servlet規範在部屬描述符中新增加了一個<dispatcher>元素,這個元素有四個可能的值:即REQUEST,FORWARD,INCLUDE和ERROR,可以在一個<filter-mapping>元素中加入任意數目的<dispatcher>,使得filter將會作用於直接從用戶端過來的request,通過forward過來的request,通過include過來的request和通過<error-page>過來的reques
Time of Update: 2015-11-01
標籤:1.在TextView中實現我們的走馬燈效果,需要兩個屬性android:singleLine="true",以及android:ellipsize="marquee";2.跑馬燈效果需要TextVIew獲得當前的焦點(focus)。然而對於TextView這個控制項來說,他的預設的Clickable,LongClickable,Focusable,FocusableInTouchMode這四個屬性的值都是false,所以跑馬燈效果也就不會出來了,即使你用手觸摸TextView或者按下手機
Time of Update: 2015-11-01
標籤:一、用NGUI建立虛擬搖杆貼圖先建立一個sprite作為背景叫做JoyStick 並添加一個BoxCollider,再建立一個sprite child作為虛擬搖杆中間的按鈕,叫做button二、通過虛擬搖杆獲得x,y位移值 1 using UnityEngine; 2 using System.Collections; 3 4 public class JoyStick : MonoBehaviour 5 { 6 7 private bool isPress =
Time of Update: 2015-11-01
標籤:把singleView的項目改成空項目1.把viewcontroller和sb刪除2.在根目錄下面 把maininterface 裡面的main刪除3.建立viewcontroller 注意建立時要把xib鉤上4.在appDelegate裡面didFinishLuaching方法中 建立window 5.讓window的rootViewController為
Time of Update: 2015-11-01
標籤:https://github.com/square/leakcanary 我們嘗試了一些方法,但是都沒有解決。
Time of Update: 2015-11-01
標籤: 一.Eclipse的下載 到網站:http://www.eclipse.org/downloads/ 上,由於我們是用Java開發的所以步驟如下:找到“Eclipse IDE for java Developers”此處右上方會根據你當前使用的系統自動選擇,Mac下就會自動選擇位“Mac OS X(Cocoa)”然後點擊右邊的“Mac
Time of Update: 2015-11-01
標籤:擷取系統音量通過程式擷取android系統手機的鈴聲和音量。同樣,設定鈴聲和音量的方法也很簡單!設定音量的方法也很簡單,AudioManager提供了方法:publicvoidsetStreamVolume(intstreamType,intindex,intflags)其中streamType有內建的常量,去文檔裡面就可以看到。JAVA代碼:AudioManager mAudioManager = (AudioManager)
Time of Update: 2015-11-01
標籤:JSON是什麼: JSON是輕量級的文本資料交換格式 JSON獨立於語言和平台 JSON具有自我描述性,更容易理解JSON文法: 資料在成對的名稱和數值中 資料由逗號分割