Time of Update: 2015-06-23
標籤:原因還未查證: http://sunjun041640.blog.163.com/blog/static/256268322014127113844746/ 在使用spring mvc時,實際上是兩個spring容器:1,dispatcher-servlet.xml
Time of Update: 2015-06-23
標籤:[UIView animateWithDuration:0.5 animations:^{ for (i = num; i > _indexOfArray+1; i--) {
Time of Update: 2015-06-23
標籤: 一、編譯一個簡單的APKLOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)# Build all java files in the java subdirectoryLOCAL_SRC_FILES := $(call all-subdir-java-files)# Name of the APK to buildLOCAL_PACKAGE_NAME := LocalPackage# Tell it to build an
Time of Update: 2015-06-23
標籤:由於Java物件導向編程的特性, 在命名時應盡量選擇名詞1、只有一個xxxApplication extends Application,初始化全域變數,Android使用Application總結2、所有的xxxActivity extends BaseActivity,(BaseActivity extends Activity)初始化所有Activity用到的全域變數、方法。3、所有的xxxFragment extends
Time of Update: 2015-06-23
標籤:<?php function check_wap() { if (isset($_SERVER[‘HTTP_VIA‘])) return true; if (isset($_SERVER[‘HTTP_X_NOKIA_CONNECTION_MODE‘])) return
Time of Update: 2015-06-23
標籤:一、首先列一下公認的資料:先看到下面的代碼你肯定就明白了一些:123456-(CGRect)frame{ return CGRectMake(self.frame.origin.x,self.frame.origin.y,self.frame.size.width,self.frame.size.height);}-(CGRect)bounds{ return CGRectMak
Time of Update: 2015-06-23
標籤:* * @param savedInstanceState If the activity is being re-initialized after * previously being shut down then this Bundle contains the data it most * recently supplied in {@link #onSaveInstanceState}. <b><i>Note:
Time of Update: 2015-06-23
標籤:一、設定textView的行間距1.如果只是靜態顯示textView的內容為設定的行間距,執行如下代碼://????textview 改變字型的行間距?????NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];?????paragraphStyle.lineSpacing = 10;// 字型的行間距??????????NSDictionary *attributes = @{?
Time of Update: 2015-06-23
標籤: autoResizing autoLayout和sizeClass詳解 1. autoResizingautoresizing是蘋果早期的ui布局適配的解決辦法,iOS6之前完全可以勝任了,因為蘋果手機只有3.5寸的螢幕,在加上手機app很 少支援橫屏,所以iOS開發人員基本不用怎麼適配布局,所有的ui控制項只要相對父控制項布局就可以了,沒錯autoResizing就是一個相對於父控制項的布
Time of Update: 2015-06-23
標籤:[fileManager isDeletableFileAtPath:<#(NSString *)#>]; 判斷一個路徑是否可刪除[fileManager isWritableFileAtPath:<#(NSString *)#>];??判斷一個路徑是否可寫[fileManager isReadableFileAtPath:<#(NSString *)#>];??判斷一個路徑是否可讀[fileManager fileExistsAtPath:<#(
Time of Update: 2015-06-23
標籤:?父類指標可以指向子類對象?//定義block別名。typedef void (^LYItemOption)(); @interface LYItemArrow : LYItem@property(nonatomic,strong) Class desController;@property(nonatomic,copy) LYItemOption option;??1.strong :除NSString\block以外的OC對象? @property(nonatomic,strong)
Time of Update: 2015-06-23
標籤:?UIView *blueView = [[UIView alloc] init];??? [self.view addSubview:blueView]; ??? blueView.backgroundColor = [UIColor blueColor]; ?????? blueView.center = self.view.center;??? blueView.bounds = CGRectMake(0, 0, 150, 150);??? self.blueView =
Time of Update: 2015-06-23
標籤:?深複製(深拷貝,內容拷貝,deep?copy)?來源物件和副本對象是不同的兩個對象?來源物件引用計數器不變,?副本對象計數器為1(因為是新產生的)?本質是:產生了新的對象??淺複製(淺拷貝,指標拷貝,shallow?copy)?來源物件和副本對象是同一個對象?來源物件(副本對象)引用計數器?+?1,?相當於做一次retain操作?本質是:沒有產生新的對象IOS中級篇 —— 關於深複製和淺複製
Time of Update: 2015-06-23
標籤:結合NSCalendar和NSDate能做更多的日期\時間處理 獲得NSCalendar對象NSCalendar *calendar = [NSCalendar currentCalendar];?獲得年月日- (NSDateComponents *)components:(NSCalendarUnit)unitFlags fromDate:(NSDate *)date;//建立日期 NSDate?*d = [NSDate?date];//建立日期對象 NSCalendar?*ca = [
Time of Update: 2015-06-23
標籤:androidstudio android android應用 android開發 java 因為項目要求參與無線端開發,本著技多不壓身的指導精神,決定依然從web轉攻用戶端! 因為之前自己玩過兩個月android(實際上只是做了兩個有失水準的demo級app),本來以為這次再來學習將遊刃有餘。
Time of Update: 2015-06-23
標籤:android 設計模式 線程 在Android中用於儲存Activity狀態的onSaveInstanceState()和恢複Activity狀態的onRestoreInstanceState(),這種算不算是一種備忘錄模式呢?1、定義:在不破壞封裝的情況下,捕獲對象的內部狀態,並在對象之外儲存這個狀態,這樣以後就可以恢複以後儲存的狀態;2、使用:備忘錄模式,比較適合用於功能複雜,但是需
Time of Update: 2015-06-23
標籤:判斷單個檔案大小 //單個檔案的大小- (long long) fileSizeAtPath:(NSString*) filePath{ NSFileManager* manager = [NSFileManager defaultManager]; if ([manager fileExistsAtPath:filePath]){ return [[manager attributesOfItemAtPath:filePath error:nil]
Time of Update: 2015-06-23
標籤:android canvas bitmap 記憶體溢出 android createbitmap函數記憶體溢出,求解如何進行處理out of memory溢出問題android createbitmap函數記憶體溢出,求解如何進行處理out of memory溢出問題android createbitmap函數記憶體溢出,求解如何進行處理out of
Time of Update: 2015-06-23
標籤:qq qq好友名單 ios uiimageview tag 上節我們講到如何展示好友資訊iOS
Time of Update: 2015-06-23
標籤:背景:UIWebView: iOS 用來展示 web 端內容的控制項。1. 核心方法:- (NSString*)stringByEvaluatingJavaScriptFromString:(NSString *)script;script 就是 JS 代碼,返回結果為 js 執行結果。 比如一個 JS function 為function testFunction(abc){ return abc;};webview 調用此 JS 代碼如下:NSString *js =