Time of Update: 2015-03-17
標籤: 前言 關於android-async-http諸多,相信大家都有一定的瞭解。我這這裡只簡單的說一下它的取消請求這一塊。所有結論都是在同一個Context情況下。 能被取消請求的請求android-async-http能被取消請求的請求必須傳入一個Context,否則則沒有任何效果。以簡單的get請求為例。get(context, url, params, responseHandler)
Time of Update: 2015-03-17
標籤: 描述 我們在VS2010中建立網站時,點擊菜單:檔案->建立時,下面有項目和網站兩個選擇,建立時的預設名字為WebApplication和WebSite的名稱。 區別 1.WebApplication WebApplication
Time of Update: 2015-03-17
標籤:LMLPHP官方網站兼部落格移動站上線新聞maybe yes 發表於2015-01-12 14:32原文連結 : http://blog.lmlphp.com/archives/60 來自 : LMLPHP後院經過周日的努力,一下午加晚上,LMLPHP 官方網站手機站和 LMLPHP 官方部落格手機站正式上線。目前所有頁面在 MI2 的內建瀏覽器,UC瀏覽器,百度瀏覽器和 Samsung Galaxy S4 mini 的 QQ
Time of Update: 2015-03-17
標籤:styles.xml中<style name="AppBaseTheme" parent="Theme.AppCompat.Light">提示如下錯誤,這是版本問題。error: Error retrieving parent for item: No resource found that matches the given
Time of Update: 2015-03-17
標籤: 轉載地址:http://blog.csdn.net/justinjing0612/article/details/34127597最近幾年都很流行hybrid開發模式,這樣就少不了native和Html介面的一些互動,或者方法的調用。 的分享火熱我想也說大部門app模仿的一個典範。今天我們就說分享的一個細節。我們瀏覽朋友的朋友圈後,如果想分享到自己朋友圈,那我們就需要知道webview 的title 和
Time of Update: 2015-03-17
標籤:Objective--C 一 關鍵字self 相當於java中的this,但是又有不同 它即可一代替對象,也可以代替類, 也就是說它既可以用在靜態方法中又可以用在動態方法中。super 相當於父類,可以調用父類的函數nil 相當於java中null,null 指標#pragma 注釋代碼用的,用它注釋之後,以後你要想找到這段代碼可以一下定位到該段代碼,一般在一些回調方法、代理方法中常用它注釋SEL 函數指標地址 @select 擷取類的方法在記憶體中的指標地址 @protocol
Time of Update: 2015-03-17
標籤:22:48:452015-03-16說道用控制項,很地東方都在用。用好了,可以加快開發進度,提高可維護性,程式的穩定,健壯性,用不好,也可以提高經驗值啊,下次就好了,算是學習成本吧。不同語言,不同項目個不相同。IOS中還是xib方式。使用者控制項.h 使用者控制項.m 使用者控制項.xib .相互配合。xib檔案還UI部分,這個算是有個設計檢視,可以直接看效果,減少代碼量。.h 定義對外部分,.m具體實現。 ios使用者控制項
Time of Update: 2015-03-16
標籤:最佳化項目過程中發現了一個很Low的問題,整理一下,備忘:說問題之前先看下HandlerThread的定義一個封裝了looper的線程: Looper用於封裝了android線程中的訊息迴圈,預設情況下一個線程是不存在訊息迴圈(message
Time of Update: 2015-03-16
標籤:android 捷徑 shortcut 原文來自http://blog.zanlabs.com/2015/03/14/android-shortcut-summary/將近二個多月沒寫部落格了。之前一段時間一直在搞紅包助手,就沒抽時間寫部落格,但寫這個真的是很好玩。沒想到居然在Android上實現類比點擊,從而實現自動搶紅包,有興趣的同學可以參考https://github.com/way
Time of Update: 2015-03-16
標籤:iOS8 產生二維碼與條碼:源碼://// ViewController.m// CodeCreator//// Created by YouXianMing on 15/3/16.// Copyright (c) 2015年 YouXianMing. All rights reserved.//#import "ViewController.h"@interface ViewController ()@property (nonatomic, strong)
Time of Update: 2015-03-16
標籤://// ViewController.m// AppManager//// Created by xin on 15-3-16.// Copyright (c) 2015年 Jackey. All rights reserved.//#import "ViewController.h"//1 get the data//2 draw the view@interface ViewController ()//@property (nonatomic,strong)
Time of Update: 2015-03-16
標籤: //選擇圖片 requestCode 返回的標識 Intent innerIntent = new Intent(Intent.ACTION_GET_CONTENT); //"android.intent.action.GET_CONTENT" innerIntent.setType(contentType); //查看類型 String IMAGE_UNSPECIFIED = "image/*"; Intent wrapperIntent =
Time of Update: 2015-03-16
標籤:shader android 源碼 效果 TileMode是一個枚舉類,位於android.graphics.Shader類裡面android源碼 public enum TileMode { /** * replicate the edge color if the shader draws outside of
Time of Update: 2015-03-16
標籤:剛開始學Android,裝環境裝了一天,結果終於弄好後這兩天Eclipse啟動並執行時候老是出現‘Android SDK Content Loader‘ has encountered a problem. praseSdkContent failed 錯誤:經過核實,發現是我原先裝了兩個Android SDK
Time of Update: 2015-03-16
標籤:1.類也是個對象類是一個對象是Class類型的對象簡稱類對象Class類型的定義// 一個任意的類型,表示一個Objective-C類 typedef struct objc_class *Class; 類名就代表著類對象,每個類只有一個類對象 擷取類對象// 擷取類對象兩種方式person1 和 person2 Class 
Time of Update: 2015-03-16
標籤:Yeoman - scaffold JavaScript Web Application (setup new JavaScript web app quickly)depend on two tools:-Grunt, JavaScript task runner-Bower, A package manager for webstep0, install Node.js and NPMstep1, install Grunt: # npm install -g
Time of Update: 2015-03-17
標籤:xml設定豎屏顯示<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.himi" android:versionCode="1" android:versionName="1.0"> <application
Time of Update: 2015-03-17
標籤:摘要 任何系統在沒有使用者登入就可操作資料是非常危險的,連結用戶端與伺服器的是使用者登入後的session,使用者登入系 統後存在一個sessionid,這個sessionid就是用戶端的cookie,用戶端擷取到sessionid設定cookie後就可以發起任意的 HTTP伺服器請求了。HTTP 用戶端編程中最常碰見的問題,很多網站的內容都只是對註冊使用者可見的,這種情況下就必須要求使用正確的使用者名稱和口令登入成功後,方可瀏覽到想要的頁面。因
Time of Update: 2015-03-17
標籤:如果你在virtualbox裡得到這樣的提示資訊: Unable to boot - please use a kernel appropriate for your
Time of Update: 2015-03-17
標籤:一、建立多線程的五種方式1.開啟線程的方法一 NSThread * thread=[[NSThread alloc] initWithTarget:self selector:@selector(_update) object:nil];2.開啟線程的方法二 [NSThread detachNewThreadSelector:@selector(_update) toTarget:self withObject:nil];3.開啟線程的方法三 [self