Time of Update: 2015-01-07
標籤:android android開發 經常我們會在資源檔(res/strings.xml)定義字串,一維數組,那定義二維數組?直接定義二維數組沒找到,可以間接定義。其實很簡單,看過用過一次就可以記住了,一維數組估計大家經常用到,但是二維數組應該比較少用,因為只能間接定義二維數組。數組的定義:數組就是一次性定義相同資料類型的一組變數數組定義。數組的特點:1.數組是相同資料類型的元素的集合。2.數組中的各元素是有先後順序的,它們
Time of Update: 2015-01-07
標籤:storyboard 布局 ios autolayout xcode 現在我們來弄一個相對複雜一點的布局如下需求為要求使用者名稱距離上邊30文字框跟按鈕距離左右40
Time of Update: 2015-01-08
標籤://重寫ScrollViewpublic class NotifyingScrollView extends ScrollView { /** * @author Cyril Mottier */ public interface OnScrollChangedListener { void onScrollChanged(ScrollView who, int l, int t, int oldl, int oldt); }
Time of Update: 2015-01-08
標籤:iOS 簡易底層我自己在使用的Basement 簡易可自訂度底層 1、 沒有的東西: 網路請求 資料存放區 - ASI二次開發 AF MK 各有所好、 所以不寫。 CoreData 使用 各有所好, 推薦Magic FMDB - 資料庫相關操作 - 各有所好不寫 &
Time of Update: 2015-01-07
標籤: 在iOS中可通過兩種方式去播放聲音: * 播放壓縮的音效檔,比如mp3檔案,一般使用播放聲音中提到的方法,適用於播放時間較長,比如大於30秒,AVAudioPlayer可以提供更多的控制特性,比如暫停等等 *
Time of Update: 2015-01-08
標籤:1,什麼是notification,什麼時候用delegate 什麼時候用Notification? Notification 是通知中樞 .
Time of Update: 2015-01-07
標籤:1.我們可以命名的資源種類有多少?答:res/anim/XML檔案,它們被編譯進逐幀動畫(frame by frame animation)或補間動畫(tweened
Time of Update: 2015-01-07
標籤:try { URL url = new URL(path); //path圖片的網路地址 HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();&nb
Time of Update: 2015-01-07
標籤:Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: A: a1 → a2 c1 → c2 → c3 B:
Time of Update: 2015-01-07
標籤:問題詳情描述:建立 IOS 靜態庫,運行時報錯如下:Check dependenciesCodeSign error: code signing is required for product type ‘Unit Test Bundle‘ in SDK ‘iOS 8.1‘解決辦法:一般搞東西都是在 項目的 Target 裡搞東西,比如例子中的 DestationKit target ,而忽略 DestationKitTeststarget, 解決辦法和常見的 codesign
Time of Update: 2015-01-07
標籤:android studio eclipse gradle 本篇使用到的Android Studio版本為1.0, Eclipse ADT版本22.3.0。主要介紹兩種匯入方式:先用Eclipse匯出為Gradle build files,然後直接用Android Studio匯入該項目。 用Android Studio 直接匯入Eclipse項目。 Android Studio預設使用
Time of Update: 2015-01-07
標籤:在IOS7以前,UITabbarItem的圖片都是被固定渲染為藍色,想要改變UITabbarItem的圖片顏色就必須要自訂,在IOS7以後,得到了更新,方便大家自己去設定顏色,下面給出代碼!1、建立UITabbarItem的預設圖片和選中圖片//第一個介面 ChildViewController *childvc = [[ChildViewController alloc]initWithNibName:nil bundle:nil];
Time of Update: 2015-01-07
標籤:餅圖 用的是AChartEngine需要引用achartengine-1.0.0.jar包。:http://download.csdn.net/detail/yaohucaizi/5128672。具體代碼如下:@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // setContentView(R.layout.
Time of Update: 2015-01-06
標籤:Android SDK Manager 包含:Tools(構建工具、編譯工具、平台工具等) 、各種版本SDK、Extras(安卓知識庫和協助工具輔助)每個SDK至少包含:1、SDK Plaform 2、Simple for SDK (案例檔案)3、Source for Android SDK (SDK對應源碼)4、一個虛擬機器鏡像 (Intel x86/ARM) 安裝:1、直接拷貝到對於目錄2、通過Android SDK Manager 線上下載Android
Time of Update: 2015-01-06
標籤://1.參數類型是NSString類型,後面params是第一個參數,它後面跟著逗號和三個點(固定格式)-(void) test:(NSString*)params,...{ NSString* curStr; va_list list; if(params) { &n
Time of Update: 2015-01-06
標籤:ios iphone button 設定 設定按鈕為不可按:setEnable[button setEnable:NO];設定變灰:setAlpha[button setAlpha:0.4];設定按鈕映像:setImage[button setImage:[UIImage imageNamed:@"choice"]
Time of Update: 2015-01-06
標籤:簡介:想要建立一個支援HTML5的Android App;這個HTML5的程式需要使用本機存放區,特別是sqllite;用eclipse建立了一個app,這個app預設在res/layout建了兩個描述介面的xml檔案,一個調用另一個,下面的代碼基於這種情況;package com.example.helloweb;import android.app.Activity;import android.app.ActionBar;import
Time of Update: 2015-01-06
標籤: 在Xcode中,Debug時,不能像eclipse ,或VS那些整合開發那樣,能直接查看變數的值。那怎麼在調試的時候查看XCode的變數呢?有一些方法的。1、建立一個Single View App在viewDidLoad裡添加些代碼:- (void)viewDidLoad{ [super viewDidLoad]; NSDictionary *dic = [NSDictionary
Time of Update: 2015-01-06
標籤:----------------sql錯誤在webservice中使用了這樣的語句導致出錯(因為要在後面使用CopImportTime列):string sCourtName = myDataTable.Rows[i]["CopZDMC"].ToString();string sSql = string.Format("select top 1 CopCGL,CONVERT(varchar(100), CopImportTime, 23) From TC_CopyRate
Time of Update: 2015-01-06
標籤:1:UITextField設定出現清除按鍵self.textField.clearButtonMode =