Time of Update: 2015-08-30
標籤:iOS開發中各種淫技總結(三) 一:send和awk解釋 sed -n p filenamesed ----------------------------是一個流編輯器(stream editor)awk ‘BEGIN {print “Hellow"}‘awk
Time of Update: 2015-08-30
標籤:1.plist屬性列表>1.適用對象:僅僅是Foundation架構中內建的一些類,比如:NSString/NSArray/NSDicionary/NSSet/NSNumber/NSData>2.調用對象的writeToFileXXX方法就可以寫入檔案 >3.調用對象的XXXWithcontensOfFile方法就可以從檔案中讀取對象內容 2.喜好設定>1.本質還是plist屬性列表的方法進行儲存>2.存取非常簡單
Time of Update: 2015-08-30
標籤:android 開源架構 線程 非同步 感謝開源的魅力。開源很美。SubscriberMethodFinder 發現註冊方法類SubscriberMethod 使用者註冊的方法組合Subscription 使用者和方法索引值對應類AsyncPoster 非同步發起類HandlerPoster 主線程發起類PostBeen 訊息類(發起類根據訊息執行回調)
Time of Update: 2015-08-30
標籤:android tab RadioGroup+ViewPager+Fragment實現的可滑動的Tab頁,非常的靈活。最終 demo下載:http://download.csdn.net/download/shenyuanqing/9064189部分源碼MainActivitypackage com.example.shen.tabtest.activity;import
Time of Update: 2015-08-30
標籤: 我們在開發GIS系統的時候,首先要解決的就是地圖的可視化問題,這個問題的關鍵就在於如何把地圖的座標轉換成螢幕座標,然後才到渲染著色、標註等。以下以wgs84經緯度座標為基準,介紹一下地圖經緯度座標與螢幕座標轉換的問題。 一、比例尺
Time of Update: 2015-08-30
標籤:布局 控制項 imageview android 1、android:orientation 垂直擺放;2、ImageView
Time of Update: 2015-08-30
標籤: 在開發某個項目的時候,因為項目需要匯入視訊,這個在Simulater中測試遇到了麻煩,因為在Simulater中,沒有視頻,只有幾個圖片,但是在真機上測試的時候,我又閑麻煩,所以,直接寫了一個簡單的將視頻匯入Simulater中的Demo。 源碼如下: #import "ViewController.h"@interface ViewController ()@end@implementation ViewController-
Time of Update: 2015-08-30
標籤:iOS 7 滑動返回那些事兒2014/05/17 Wei.entry-meta.entry-header在智能機越來越普及,螢幕越做越大的當下,滑動返回手勢已經成為了一個應用的標配功能,甚至可以說,不能滑動返回是一種反人類的互動體驗。滑動返回現在大致有以下3種類型: 1 使用 UISwipeGestureRecognizer 實現,效果為使用者在螢幕中向右輕掃手指,頁面返回。 2 使用 UIPanGestureRecognizer 實現,效果為使用者在螢幕中向右滑動手指,鬆開後頁面返回。
Time of Update: 2015-08-30
標籤:ongestureperformedli gestureoverlayview gesturebuilder 自訂手勢 android 1.回顧 上篇實現: (1)OnTouchListener 實現 上下左右手勢識別 (2)OnTouchListener
Time of Update: 2015-08-30
標籤:徐守威 淺談android的activity運行 關於Android的Activity運行流程,我們可以寫一些程式來直觀的查看Activity的運行流程。在這裡我們使用Log工具來擷取Activity作業記錄。假如我們建立一個Android項目,ProcessActivity.java代碼如下:public class ProcessActivity extends Activity {
Time of Update: 2015-08-30
標籤:開發中常見錯誤和警告總結(二十六)錯誤提示 一:# 錯誤[__NSArrayM superview]: unrecognized selector sent to instance 0x7ff953507b10我忘了載入xib裡面的firstObject二:注意:如果UIAlertController的樣式是ActionSheet, 就不能添加輸入框reason: ‘Text fields can only be added to an alert controller of
Time of Update: 2015-08-30
標籤:關於Android的Activity運行流程,我們可以寫一些程式來直觀的查看Activity的運行流程。在這裡我們使用Log工具來擷取Activity作業記錄。假如我們建立一個Android項目,ProcessActivity.java代碼如下:public class ProcessActivity extends Activity { private static final String
Time of Update: 2015-08-30
標籤:android 時間管理 TimePickerDialog Android的DatePickerDiaolog是彈出時間管理的視窗,DatePickerDiaolog描述的年月日時間;,與TimePickerDiaolog不同的是TimePickerDiaolog描述的是一天中具體的時分,TimePickerDiaolog有兩中表示方式,一種是12小時制,一種是24小時制。 private Calendar
Time of Update: 2015-08-30
標籤:1.首先我們通過一個執行個體案例來引出一個異常:(1)布局檔案activity_main.xml: 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:layout_width="match_parent" 4
Time of Update: 2015-08-30
標籤:1、獲得root許可權:adb root; 如提示adbd cannot run as root in production builds,參見我的另一篇文章:http://www.cnblogs.com/hdk1993/p/4770388.html 2、設定/system為可讀寫:adb remount; 3、將檔案複製到PC:adb pull 手機檔案目錄 <PC機上檔案名稱>; 例:adb pull /system/etc/hosts D://hosts
Time of Update: 2015-08-30
標籤:一、以往使用 UIPopoverController 都是只在iPad上使用 1 /** 2 * UIPopoverController 只能用於iPad,上,iPhone上使用會崩潰 3 */ 4 -(void)old 5 { 6 VC2 *vc = [[VC2 alloc]init]; 7 8 UIPopoverController *popover = [[UIPopoverController
Time of Update: 2015-08-30
標籤:擷取自訂屬性通常是在自訂View內部擷取,但在某種方式下,無論自訂View的屬性還是主題中樣式的屬性,均可在外部style中擷取。 由於非自訂View的外部擷取方式比較複雜,這裡暫時略過,後續補充。 自訂attr
Time of Update: 2015-08-30
標籤:android canvas protected void onDraw(Canvas canvas) {// TODO Auto-generated method stubsuper.onDraw(canvas);//構造兩個畫筆,一個紅色,一個綠色Paint paint_green = generatePaint(Color.GREEN, Style.STROKE, 3);Paint paint_red =
Time of Update: 2015-08-30
標籤:介面 swift ios storyboard
Time of Update: 2015-08-30
標籤:spring framework 大家都知道Java讀普通檔案是通過Basic I/O 中的InputStream、OutStream、Reader、Writer 等實現的。在spring 架構中,它是怎樣識別xml這個設定檔的呢?這就要靠IoC容器的兩個介面BeanFactory和ApplicationContext:BeanFactory