Time of Update: 2015-05-22
標籤:android 事件處理 手勢 touch 轉載請註明出處:http://blog.csdn.net/ZhouLi_CSDN/article/details/45878337看了網上那麼多的部落格
Time of Update: 2015-05-22
標籤:android開發 5.0新特徵 設定控制項寬高 之前開發的項目在4.X完美運行,可是使用者升級到5.0以上就出現莫名的bug。以下是修改bug中總結的差異化!(持續更新)總體感覺5.0以後對程式員的編碼要求更高了,沒有4.X系列那麼隨意了(*^__^*) 嘻嘻……1,此處View
Time of Update: 2015-05-22
標籤:使用MethodSwizzle 實現對數組、字典 等系統方法的安全校正。顯然能達到預期效果,但實際發現當鍵盤顯示的情況下 home app 進入後台,再單擊app 表徵圖 切換回前台時 發生crash :[UIKeyboardLayoutStar release]: message sent to deallocated instanceUIKeyboardLayoutStar 是鍵盤上的布局的視圖吧,整個工程都在ARC下 構建,很奇怪其中都有提到DurexKit
Time of Update: 2015-05-21
標籤:在做項目中要進行檔案的下載以及調用系統軟體開啟,檔案是服務端,以下是一些程式碼片段:運用progressbar和http協議下載檔案:如果沒有這個檔案的就先進行建立並下載,如果有的話就開啟:private void playMeida() {file2 = new File(savePAth + "/" + filename);if (!file2.exists()) {new Thread() {public void run() {try
Time of Update: 2015-05-22
標籤:最近研究了一下iOS的自動化編譯,目的是為了簡化測試和開發的同學溝通協調的次數,實現測試同學可以隨時從網頁操作編譯SVN最新源碼並打包ipa進行測試。具體思路是通過從設定檔讀取需要編譯的項目配置列表展示在網頁上,測試同學選擇需要編譯的項目,確定後將選擇項目的相關參數傳入shell指令碼運行,編譯完成自動跳轉至下載頁面。主要流程包括:Shell指令碼的編寫。通過xcodebuild和xcrun實現自動編譯並打包。PHP呼叫指令碼。開啟OS
Time of Update: 2015-05-21
標籤:連結 :http://poj.org/problem?id=2186一個聯通分量裡的所有的牛滿足任何一個被其他牛認為是紅人。強聯通縮點之後 只需要找到一個且只有一個聯通分量且它的出度為0 答案就是這個強聯通分量點的個數。#include <algorithm>#include <iostream>#include <cstring>#include <cstdio>#include <vector>#include
Time of Update: 2015-05-22
標籤:Hey, I am trying to convert NSString to a C string using cStringUsingEncoding but I have a memory leak. My understanding is that cStringUsingEncoding returns a pointer to a character array that is only guaranteed to exist for the duration of the
Time of Update: 2015-05-21
標籤:Cocoa架構是iOS應用程式的基礎,瞭解Cocoa架構,對開發iOS應用有很大的協助。1、Cocoa是什嗎?Cocoa是OS X和 iOS作業系統的程式的運行環境。是什麼因素使一個程式成為Cocoa程式呢?不是程式設計語言,因為在Cocoa開發中你可以使用各種語言;也不是開發工具,你可以在命令列上就可以建立Cocoa程式。Cocoa程式可以這麼說,它是由一些對象組成,而這些對象的類最後都是繼承於它們的根類
Time of Update: 2015-05-22
標籤:object-c 介面 frame bounds ui 參考資料:http://blog.csdn.net/hherima/article/details/39501857在IOS的UI開發中,經常需要對view進行定位。比較常用的概念就是Frame和Bound,通過view這兩個屬性,就可以任意的“擺弄”我們的view了
Time of Update: 2015-05-22
標籤:Android Binder基礎知識點 一 傳統IPC和Binder機制的比較 傳統IPC: 1)收方無法獲得對方進程可靠的UID/PID,從而無法鑒別對方身份。 2)存取點開放,無法建立私人通道。 3)socket, 管道和訊息佇列需要兩次資料拷貝,傳輸效率差。
Time of Update: 2015-05-22
標籤:http://hukai.me/android-training-course-in-chinese/connectivity/volley/index.htmlAndroid入門基礎:從這裡開始編寫:kesenhoo -
Time of Update: 2015-05-22
標籤:android中常見空間的使用方法1.TextViewTextView主要用於在介面上顯示一段文本資訊,如下面代碼所示:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"
Time of Update: 2015-05-21
標籤: android.database.sqlite.SQLiteException: no such table at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at
Time of Update: 2015-05-21
標籤:回調這種思想大家應該都用過,只是很多人不知道那是回調的一種罷了,前幾天整理了一下自己對於回調的理解,就順便把自己的一些想法整理到部落格中。 讓我們從一個小故事開始。某天,我打電話向你請教問題,當然是個難題,你一時想不出解決方案,我又不能拿著電話在那裡傻等,於是我們約定:等你想出辦法後打手機通知我,這樣,我就掛掉電話辦其它事情去了。過了XX分鐘,My
Time of Update: 2015-05-21
標籤:uiviewcontroller 控制器 根視圖 ios 直接上代碼- (void)backToRootViewController{ UIViewController* vc = [MainViewController instance].navigationController.visibleViewController; if ([vc
Time of Update: 2015-05-21
標籤: Objective-C是C語言的擴充,因此,也具備很多C語言的基本特性,這裡只羅列部分。塊(Blocks) 塊是對C語言的一種擴充,它並未作為標準ANSI
Time of Update: 2015-05-21
標籤:前言android gradle 的外掛程式終於把混淆代碼的task整合進去了,加上最近,android studio 用的是gradle 來構建項目, 下定決心把android gralde 構建項目的使用者指南全部看完, 讓不會用gradle 的人也用gradle構建android項目,讓打包(注意,打包和構建是兩碼事)多版本android不再痛苦。最後,題外話:珍惜生命,遠離ant.... Gradle build android 曆史Android Tools
Time of Update: 2015-05-21
標籤:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:wen=http://schemas.android.com/apk/res/com.iteye.googlers android:orientation="vertical" android:layout_width="fill_parent"
Time of Update: 2015-05-21
標籤:android解析二維數組對象key:value JSONArray jsonArray = jsonObject.optJSONArray("data"); // array = dataObj.getJSONArray("data");
Time of Update: 2015-05-21
標籤:工作中有一個點擊button更新button上文案的需求,用自訂了button可以很簡單的實現的這個需求首先寫個自訂的buttonCustomButton.h#import <UIKit/UIKit.h>typedef NS_ENUM(NSUInteger, CustomButtonStatus){ CustomButtonStatusNormal = 0, CustomButtonStatusReverse = 1};@interface