Time of Update: 2015-05-24
標籤:CoreGraphics架構中的CGAffineTransform類可用於設定UIView的transform屬性,控制視圖的縮放、旋轉和平移操作:另稱放射變換矩陣,可參照線性代數的矩陣實現方式0.0這裡附上的CGAffineTransform官方文檔:https://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/CGAffineTransform/index.htmltransform
Time of Update: 2015-05-24
標籤:1:從GitHub上下載最新版androidannotations-api-3.3.1.jar2:建立Module:my-aa-test3:將androidannotations-api-3.3.1.jar拷貝到模組libs目錄下面4:修改工程下面的build.gradle設定檔內容:主要增加了以下配置項: classpath ‘com.neenbedankt.gradle.plugins:android-apt:1.4‘// Top-level build file
Time of Update: 2015-05-23
標籤:Happy birthdayTime Limit: 20 Sec Memory Limit: 256 MB題目串連http://acm.hdu.edu.cn/showproblem.php?pid=5234Description今天是Gorwin的生日。所以她的媽媽要實現她的一個願望。Gorwin說她想吃很多蛋糕。所以他媽媽帶她來到了蛋糕園。
Time of Update: 2015-05-23
標籤:0、需要終端產生的 aps.cer 和 aps.p12 檔案。1、把.cer的SSL認證轉換為.pem檔案,執行命令:openssl x509 -in aps.cer -inform der -out PushChatCert.pem2、把私密金鑰aps.p12檔案轉化為.pem檔案:openssl pkcs12 -nocerts -out PushChatKey.pem -in
Time of Update: 2015-05-23
標籤: 《互連網醫學大棋局》五星。中美移動醫學領域的現狀、機會、限制。http://www.amazon.cn/dp/B00T9BC9AK/全書分析中美移動醫學領域的現狀、機會、限制。個人感覺水平比較高。書中幾個重要的觀點:1:流量換收入的互連網思維在醫學領域沒用。2:美國與中國在醫學行業有諸多不同:最重要的是美國醫學界有動力去改善醫學服務的各個環節。原因是奧巴馬的醫改法案讓醫學界更關注醫學品質而不是門診手術數量,因而讓醫學界有動力去通過技術手段與病人在診前診後互動,提高病人的健康水平
Time of Update: 2015-05-23
標籤:步驟比較簡單,只需要 在.pch 中追加你對應的宏定義#ifdef DEBUG#define LOG(...) NSLog(__VA_ARGS__);#define LOG_METHOD NSLog(@"%s", __func__);#else#define LOG(...); #define LOG_METHOD;#endif 我們發布到appstore 上的版本均是release版本,這裡簡單說下這兩個版本的差異。release
Time of Update: 2015-05-23
標籤:cmd命令位於C:\Windows\System32\cmd.exe。使用set命令 查看所有環境變數及其對應的值,使用echo %SystemRoot% 查看環境變數的值。Android簽名工具位於D:\Java\jdk1.8.0_45\bin\keytool.exe。1、建立簽名檔案在命令列輸入keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -storepass
Time of Update: 2015-05-23
標籤:1、通過一次編譯跟事務來最佳化資料庫插入,通過僅查詢指定欄位來最佳化資料庫查詢。/** * <ol><li>開啟資料庫 * <li>建立句子(避免String+String) * <li>編譯(避免多次編譯) * <li>執行 * <li>關閉資料庫</ol> * @author shixin */public class MainActivity extends Activity
Time of Update: 2015-05-23
標籤:在做項目的過程中遇到了很多困難,於是收集了一些快速開發的架構,使用後大大提高了項目開發速度,無論什麼項目都可以使用的到,在此分享給大家,希望能對大家有協助!(個人建議:有時間的同學可以看一下這些優秀架構的源碼,一定會有很多收穫!) 開發工具: Android Studio學習資料: Android Studio中文社區、Android Studio Mac 快速鍵整理分享實用外掛程式:ADB
Time of Update: 2015-05-23
標籤://的搖一搖是怎麼實現的~發現原來 ios本身就支援//在 UIResponder中存在這麼一套方法 - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0); - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent
Time of Update: 2015-05-23
標籤:- (BOOL) isEmail { NSString *emailRegEx = @"(?:[a-z0-9!#$%\\&‘*+/=?\\^_`{|}~-]+(?:\\.[a-z0-9!#$%\\&‘*+/=?\\^_`{|}" @"~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\" @"x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\
Time of Update: 2015-05-23
標籤: // 方法1:NSComparator NSArray *listGroupname = [self.listTeams sortedArrayUsingComparator:^(NSString *n1,NSString *n2) {
Time of Update: 2015-05-23
標籤:命令設計模式命令設計模式詳解命令設計模式詳解基本概念NSInvocation的使用命令模式的體現基本概念命令設計模式將一個請求或行動作封裝為對象。這個封裝請求比原始的請求要靈活並且可以在對象之前被傳遞,儲存,動態修改或者放進隊列裡面。蘋果公司實現這種模式使用Target-Action機制和Invocation。NSInvocation的使用在 iOS中可以直接調用 某個對象的訊息
Time of Update: 2015-05-23
標籤:css3動畫相容 css3 web 前端 web感悟每天日記 動畫 @keyframes
Time of Update: 2015-05-24
標籤:android 進度條progressbar樣式設定普通圓形ProgressBar該類型進度條也就是一個表示運轉的過程,例如傳送簡訊,串連網路等等,表示一個過程正在執行中。一般只要在XML布局中定義就可以了。 <progressBar Android:id="@+id/widget43" android:layout_width="wrap_content"
Time of Update: 2015-05-24
標籤:1BUG,(sqlite有關)遇到: attempt to re-open an already-closed object: SQLiteDatabase: /data/data/com.example.biye/databases/ToDothing.db嘗試重新開啟一個已經關閉的對象:sqlitedatabase......解決:查看前面的方法裡有關閉資料庫的操作沒?如:db.close(); 將其注釋掉或刪除。
Time of Update: 2015-05-24
標籤:直接上代碼了,比較簡單。示範:Demo//// UYViewController.m// 圖片輪播器//// Created by jiangys on 15/5/23.// Copyright (c) 2015年 uxiaoyuan. All rights reserved.//#import "UYViewController.h"#define kImageCount 5@interface UYViewController
Time of Update: 2015-05-24
標籤:解決問題錯誤: Could not find the AndroidManifest.xml file, going up from path //開啟app build.gradle檔案加入以下代碼 /*** AA註解Apt配置*/apt { arguments { androidManifestFile variant.processResources.manifestFile
Time of Update: 2015-05-24
標籤://// ViewController.m// APP內建導航//// Created by wup on 15/5/23.// Copyright (c) 2015年 apple. All rights reserved.//#import "ViewController.h"#import&
Time of Update: 2015-05-24
標籤:一、為何寫作此文??你是不是經常看到很多書籍中說:不能在子線程中操作ui,不然會報錯。你是不是也遇到了如下的疑惑(見下面的代碼):@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); tv =