Time of Update: 2016-03-01
標籤:本文只是我在看官方協助文檔的翻譯和理解,以方便自己日後查看。什麼是layout資源檔?layout一個定義了Activity或者組件的布局的xml檔案。它一般長這樣:<?xml version="1.0" encoding="utf-8"?><ViewGroup xmlns:android="http://schemas.android.com/apk/res/android" android:id="@[+][package:]id/resource_name"
Time of Update: 2016-03-01
標籤:之前很多二維碼掃描都是基於zxing做的,但是zxing用起來真的很麻煩,又一直不更新。隨著iOS6退出曆史舞台,終於可以使用iOS7以後,用系統的AVFoundation做的二維碼掃描器了。初始化相機,掃描器- (void)setupCamera{ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ // 耗時的操作 // Device _
Time of Update: 2016-03-01
標籤:原文連結:http://www.jianshu.com/p/a086c33566be一、 AFN 使用注意點1. block循環參考 bug
Time of Update: 2016-03-01
標籤:1.首先先科普一下,android為什麼需要給安裝包簽名: 所有的Android應用程式在發布之前都要求開發人員用一個認證進行數位簽章,anroid系統不會安裝沒有進行簽名的由於程式。
Time of Update: 2016-03-01
標籤:We can use the useGeneratedKeys and keyProperty attributes to let the database generate the auto_increment column value and set that generated value into one of the input object properties as follows:<insert id="insertStudent"
Time of Update: 2016-03-01
標籤:使用這種方式調用資料庫,比常規方式好在,簡潔且具有傳回值,可以判斷是否成功add:SQLiteDatabase db=myOpenHelper.getWritableDatabase();ContentValues values=new ContentValues();values.put("username", "wangwu");values.put("password", "110");long insert=db.insert("user", null,
Time of Update: 2016-03-01
標籤:分類:C#、Android、VS2015; 建立日期:2016-03-01 一、簡介 本章主要示範Started Service、帶Intent過濾器的Started Service、IntentService的基本用法,並簡單介紹Android提供的系統服務。 二、本章樣本主介面 1、運行 2、MainActivity.cs檔案中對應的代碼 chItems.Add(new Chapter(){ ChapterName = "第16章 自訂服務和系統服務",
Time of Update: 2016-03-01
標籤: MVP是什嗎?或許在之前更多的人知道的是MVC這個模式(Model View
Time of Update: 2016-03-01
標籤:在iOS開發中,除了使用push方法切換控制器以外,modal也可以實現介面切換,使用modal方便快捷,任何控制器都可以使用modal展示出來,開發中在設定註冊,購物車,點贊等小功能的時候可以使用。 首先我們簡單瞭解下ViewController之間的跳轉1、如果在 Storyboard中當前的
Time of Update: 2016-02-29
標籤:iphone 第三方 三叉戟 朋友 支援者 650) this.width=650;" class="aligncenter size-full wp-image-6625" alt="圖片2" src="http://www.kjxfx.com/wp-content/uploads/2016/02/2016-02-291
Time of Update: 2016-02-29
標籤:nagios 伺服器監控項目背景:為了更好的監控我們的伺服器,開源的監視軟體是免費的,可以為我們企業省去不少的開支實驗環境:虛擬機器VMware Workstation 12 player伺服器端:centos6.4的系統,ip:192.168.0.24 netmask:255.255.255.0nagios
Time of Update: 2016-02-29
標籤: SourceTree 是一個非常優秀的版本控制軟體,他是一個用戶端,方便我們去接入 GitHub 、BitBucke 上面託管的代碼。一、SourceTree簡介 SourceTree 是 Windows 和Mac OS X 下免費的 Git 和 Hg 用戶端,擁有可視化介面,容易上手操作。同時它也是Mercurial和Subversion版本控制系統工具。支援建立、提交、clone、push、pull
Time of Update: 2016-03-02
標籤:iOS常用於顯示幾小時前/幾天前/幾月前/幾年前的程式碼片段2015-03-13
Time of Update: 2016-03-02
標籤:<meta content="width=device-width; initial-scale=1.0; minimum-scale=1.0; maximum-scale=1.0" name="viewport">content屬性值 : width:可視地區的寬度,值可為數字或關鍵詞device-width height:同width intial-scale:
Time of Update: 2016-03-02
標籤:ios app xcode 設計模式 mvc 本片文章介紹MVC設計模式及其在iOS開發中的提示什麼是MVC設計模式MVC是設計模式的起源,也是在軟體工程領域使用最多的一種設計模式。 MVC即:Model模型、View視圖、Controller控制器模型:
Time of Update: 2016-03-02
標籤:一、問題的產生a.建立項目時選的iPhoneb.為了做成圖片啟動,按照慣例去掉了LaunchStoryboard的引用,建了個LaunchImage的資源,屬性裡隨便勾了一個,找了張匹配的圖拖了過去c.啟動並執行時候,報錯了。二、解決方案“did not any applicable
Time of Update: 2016-03-01
標籤:學習iOS開發的時候,得益於開源社區的大量開源項目,去年開始購買了個人開發人員帳號,寫了這個練手項目《丁丁美圖》,並上傳到了App
Time of Update: 2016-03-01
標籤:使用@controller定義controllersSpring mvc將特定url的請求分發到controller類來進行處理在spring 3.0中,通過@controller標註即可將class定義為一個controller類。為使spring能找到定義為controller的bean,需要在spring-context設定檔中增加如下定義.<context:component-scan base-package="net.zhepu.web" />
Time of Update: 2016-03-01
標籤:1,匯入ttf格式的字型到項目中2.在info添加配置3,雙擊字型,可以得到字型名(家族名)4,可以在程式啟動時列印出程式裡面的所有字型名- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {rray *familyNames = [UIFont familyNames]; for( NSString
Time of Update: 2016-03-01
標籤://根據日期返回當月的天數 (頻繁調用 [NSCalendar currentCalendar] 可能存在效能問題)- (NSUInteger)getDayCountWithDay:(NSDate *)date{ return [[NSCalendar currentCalendar] rangeOfUnit:NSCalendarUnitDay inUnit:NSCalendarUnitMonth forDate:date].length;}//傳入具體的年月日來擷取星期-