Time of Update: 2016-01-24
標籤: 1 /**/ 2 // 設定layer邊框 3 self.customView.layer.borderWidth = 10; 4 // 設定layer邊框顏色 5 self.customView.layer.borderColor =[UIColor blackColor].CGColor; 6 // 設定layer的圓角(設定主圖層的圓角) 7 self.customView.layer.cornerRadius = 10; 8
Time of Update: 2016-01-25
標籤:剛開始學習Android,使用了Android Studio IDE。為了將來生產JavaDoc,學習一下如何自訂注釋模板。. 自訂注釋模板1. 通過 File –>Settings 或者 HotKey Ctrl + Alt + S 開啟 Settings面板,如2. 點擊 Editor下的Live Templates。如,顯示的是Android Studio為開發人員提供的預設範本及快速鍵。3.
Time of Update: 2016-01-23
標籤:源碼請戳一、 現有庫和選擇的庫 HttpURLConnection:是Java中的標準類,是對Java中socket的封裝。 Httpclient:是Apache的開源架構,是對HttpURLConnection的封裝。
Time of Update: 2016-01-23
標籤: 1 @interface NJView () 2 /** 3 * 定義一個大數組(大數組中儲存小數組, 每一個小數組儲存一條直線所有的點) 4 */ 5 @property (nonatomic, strong) NSMutableArray *totalPoints; 6 7 @end 8 9 @implementation NJView 10 11 - (NSMutableArray *)totalPoints 12 { 13 if
Time of Update: 2016-01-25
標籤:一、META/LINK相關: 1、百度禁止轉碼 通過百度手機開啟網頁時,百度可能會對你的網頁進行轉碼,往你頁面貼上它的廣告,非常之噁心。不過我們可以通過這個meta標籤來禁止它: <meta http-equiv="Cache-Control" content="no-siteapp" /> 相關連結:SiteApp 轉碼聲明 2、添加到主屏後的標題(IOS) <meta
Time of Update: 2016-01-25
標籤:今天劉國斌老師講了關於怎麼編輯圖片的各種板式,如何把代碼裡的資料轉成data再存到本地的檔案,之後再取出來用 &
Time of Update: 2016-01-23
標籤:Android ImageView圖片自適應 (2011-12-07 11:28:25)轉載▼標籤:androidimageview圖片自適應加外框雜談分類: android
Time of Update: 2016-01-26
標籤:/設定按鈕上的自體的大小//[btn setFont: [UIFont systemFontSize: 14.0]]; //這種可以用來設定字型的大小,但是可能會在將來的SDK版本中去除改方法//應該使用btn.titleLabel.font = [UIFont systemFontOfSize: 14.0];btn.contentHorizontalAlignment=UIControlContentHorizontalAlignmentLeft ;/
Time of Update: 2016-01-25
標籤:運行效果如下: 模型://// CZGroup.h// 05-汽車品牌展示//// Created by ChenQianPing on 16/1/22.// Copyright © 2016年 chenqp. All rights reserved.//#import <Foundation/Foundation.h>@interface CZGroup : NSObject@property
Time of Update: 2016-01-24
標籤:jquery div拖動 看:http://jqueryui.com/draggable/下面我做了一個Demo.注意js放的位置,要放的靠近,若被其他覆蓋,則無法移動。比如:<div id="move">可移動的DIV</div>引入jquery.js, jquery-ui.js,<script
Time of Update: 2016-01-25
標籤:Xcode 3.0 是開發人員建立 Mac OS X 應用程式的最捷徑,也是利用新的蘋果電腦公司技術的最簡單的途徑。Xcode 3.0 將Mac OS X的便於使用,UNIX 能量以及高效能的開發技術集合在一起。從Xcode 3.1開始,Xcode也可被用為iPhone OS的開發環境。2008年11月24日,蘋果已經刪除了XCode 3.1.2以前的版本。2010年9月10日,Mac OS X v10.6 (版本 3.2及4.0)。Xcode
Time of Update: 2016-01-24
標籤:為什麼要用Android Studio本書節選自《Android Studio實用指南》 作者: 畢小朋目前本書已上傳到百度閱讀,在百度中搜尋[Anroid Studio實用指南]便可以找到本書.原因一: Android Studio是基於IntelliJ IDEA開發的,所以Android Studio繼承了IntelliJ IDEA的所有功能.原因二: Android Studio是Google開發的,專門用於Android開發的編輯器,換句話說是親兒子,
Time of Update: 2016-01-25
標籤:1.自己寫的activity並在AndroidManifest.xml中註冊 在類比機上運行時出現No Launcher activity found!The launch will only sync the application package on the device! 類比機中沒有檔案 解決方案:在註冊時 AndroidManifest.xml中<intent-filter> <action
Time of Update: 2016-01-25
標籤: 1 #import "HMViewController.h" 2 3 @interface HMViewController () 4 @property (weak, nonatomic) IBOutlet UIProgressView *progressView; 5 /** 6 * 寫資料的檔案控制代碼 7 */ 8 @property (nonatomic, strong) NSFileHandle *writeHandle; 9 /** 10 *
Time of Update: 2016-01-24
標籤: 1 #import <UIKit/UIKit.h> 2 3 @interface NJNavigationController : UINavigationController 4 5 @end 6 7 8 9 #import "NJNavigationController.h"10 11 @interface NJNavigationController ()12 13 @end14 15 @implementation
Time of Update: 2016-01-24
標籤:為什麼要用Android Studio本書節選自《Android Studio實用指南》 作者: 畢小朋目前本書已上傳到百度閱讀,在百度中搜尋[Anroid Studio實用指南]便可以找到本書.原因一: Android Studio是基於IntelliJ IDEA開發的,所以Android Studio繼承了IntelliJ IDEA的所有功能.原因二: Android Studio是Google開發的,專門用於Android開發的編輯器,換句話說是親兒子,
Time of Update: 2016-01-24
標籤:我們的經常使用的系統中。程式的工作一般是有事件驅動和訊息驅動兩種方式,在Android系統中,Java應用程式是靠訊息驅動來工作的。訊息驅動的原理就是:1. 有一個訊息佇列。能夠往這個隊列中投遞訊息;2. 有一個訊息迴圈。不斷從訊息佇列中取出訊息。然後進行處理。在Android中通過Looper來封裝訊息迴圈。同一時候在當中封裝了一個訊息佇列MessageQueue。另外Android給我們提供了一個封裝類。來運行訊息的投遞,訊息的處理。即Handler。<!--more-->
Time of Update: 2016-01-24
標籤://源Controller中跳轉方法實現 MKDialogController *controller = [[MKDialogController alloc] init]; controller.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
Time of Update: 2016-01-25
標籤:- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { //標識符 static NSString *iden = @"cardsCell"; CardsCell *cell = [tableView dequeueReusableCellWithIdentifier:iden]; Cards *cards = [
Time of Update: 2016-01-20
標籤:1.AFNetworking 目前比較推薦的iOS網路請求組件,預設網路請求是非同步,通過block回調的方式對返回資料進行處理。 2.FMDB 對sqlite資料庫操作進行了封裝,demo也比較簡單。 3.MBProgressHUD 也是iOS項目常用的一個組件,用於顯示過渡效果的,比如網路請求之前顯示loading,網路結束隱藏loading。建議封裝在BaseViewController中,所有ViewController繼承就能使用。 4.MJR