Time of Update: 2015-03-15
伺服器的搭建與配置,伺服器搭建配置1、用管理員來啟動本地的Apache伺服器sudo apachectl -k start2、重新啟動sudo apachectl -k restart3、尋找Apache的預設文件目錄cd /etc/apache2/sudo vim httpd.conf/DocumentRoot
Time of Update: 2015-03-15
IOS 學習筆記 20150314,ios20150314Objective--C 類與對象1 關鍵字@interace 類定義 @end 類結束@implementation 類實現: 繼承@public 公用@private 私人@protected 內部 子類可訪問@proterty 聲明成員熟悉get,set @sythesize 實現成員變數get,set2 函數3 檔案a .h 類聲明b .m 類實現4 規則1 類由兩個檔案組成 .h和.m . 2 : 代表繼承 3
Time of Update: 2015-03-15
ISO 學習筆記 2015-03-15,學習筆記2015-03-15Objective--C 一 關鍵字@property 定義變數函數@synthesize 實現變數函數二 函數alloc 分配記憶體init 初始化new 替代上面兩個函數 分配記憶體,並且初始化三 規則 0 變數的修飾符 @public @protected @private @package@public 執行個體變數可以被在任何地方訪問。@protected
Time of Update: 2015-03-11
06-圖片瀏覽器,06-瀏覽器圖片瀏覽器小案例簡介接下來使用UIImageView、UILabel、UIButton實現一個綜合小案例功能分析步驟分析掌握更換UIImageView的圖片瞭解UIImageView的contentMode更換UILabel的文字
Time of Update: 2015-03-15
iOS TableViewCell 載入時的動畫 //設定cell的顯示動畫 func tableView(tableView: UITableView!, willDisplayCell cell:UITableViewCell!, forRowAtIndexPath indexPath:NSIndexPath!){ //設定cell的顯示動畫為3D縮放 //xy方向縮放的初始值為0.1
Time of Update: 2015-03-11
iOS開發網路篇—GET請求和POST請求,iosget請求postiOS開發網路篇—GET請求和POST請求一、GET請求和POST請求簡單說明建立GET請求1 // 1.佈建要求路徑2 NSString *urlStr=[NSString
Time of Update: 2015-03-15
15.ios之Quartz2D1.什麼是Quartz2D •Quartz2D是一個二維繪圖引擎,同時支援iOS和Mac系統 •Quartz 2D能完成的工作 繪製圖形 : 線條三角形矩形圓弧等 繪製文字 繪製產生圖片(映像) 讀取產生PDF 裁剪圖片 自訂UI控制項 2.自訂View圖形上下文 •圖形上下文(Graphics Context):是一個CGContextRef類型的資料•圖形內容相關的作用
Time of Update: 2015-03-11
導航條的標題,導航條標題 : 代碼:- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self.view addSubview:[self getTileLabel:@"你好!"]];}//導航條的標題-(UILabel
Time of Update: 2015-03-11
Swift使用FMDB操作SQLite,swiftfmdbsqlite SQLite大家都懂的。本機資料庫,在行動裝置上使用廣泛。IOS平台上自然也少不了它。最近自己折騰一個小App的時候需要使用sqlite本機資料庫,上Github搜了下IOS下對SQLite的三方封裝有個星星很多的FMDB。不過是Obiect-C的庫,我是使用Swift的,本以為不能用了,不過後折騰了下發現在Swift下使用oc的庫非常簡單。下面我就介紹下如何在Swift下使用oc的FMDB庫。 1.下載 第一步自然是
Time of Update: 2015-03-09
objective-c 文法快速過(3),objective-c文法oc 裡的匿名對象 oc 這裡,很少用到,因為並不適用於oc的記憶體管理,只是面試筆試也許出現,要求能看懂,不要在項目裡這樣寫,因為寫匿名對象,會造成記憶體泄露#import <Foundation/Foundation.h>@interface Car : NSObject{ @public int speed;}- (void)run;@end@implementation
Time of Update: 2015-03-09
xmpp整理筆記:聊天資訊的發送與顯示,xmpp整理任何一個資訊的發送都需要關注兩個部分,資訊的發出,和資訊在介面中的顯示往期回顧:xmpp整理筆記:環境的快速配置(附安裝包) http://www.cnblogs.com/dsxniubility/p/4304570.htmlxmpp整理筆記:xmppFramework架構的匯入和介紹 http://www.cnblogs.com/dsxniubility/p/4307057.htmlxmpp整理筆記
Time of Update: 2015-03-11
獲得徐家匯的天氣預報,徐家匯天氣預報 代碼:- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self getWeatherInfo]; }//獲得徐家匯的天氣預報-(void)getWeatherInfo{ NSError *error;
Time of Update: 2015-03-09
objective-c 文法快速過(4),objective-c文法oc 裡的字串字串的快速建立(最簡單的方法)NSStirng *str = @“Hello”;//oc的字串都是@“”形式的oc的字串也是類的對象,是NSString類的對象,建立沒有那麼麻煩不用[ ],使用物件導向的思想來操縱字串。 char *name = "xxxxx";//c風格字串oc使用 %@ 輸出字串,不是%sNSString *name =
Time of Update: 2015-03-09
故事板無法運行:Failed to instantiate the default view controller for UIMainStoryboardFile 'Main',instantiateFailed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not
Time of Update: 2015-03-09
Objective-C中的self和super,objective-cself1.有過物件導向的人知道,self相當於this,super相當於調用父類的方法2.self是類的隱藏的參數,指向當前調用方法的類,另一個隱藏參數是_cmd,代表當前類方法的selector。super並不是隱藏的參數,它只是一個”編譯器指示符”,它和self指向的是相同的訊息接受者,也就是說, [self class]=[super class]。
Time of Update: 2015-03-09
IOS之沙箱(Sandbox)機制,iossandboxIOS中每個App應用程式都有一個單獨封閉的檔案夾,這個檔案夾稱為沙箱,並且蘋果規定,任何App都無權訪問其他App的沙箱沙箱目錄通過FOUNDATION_EXPORT NSString *NSHomeDirectory(void);或者NSSearchPathDirectory枚舉值,指定搜尋沙箱中的子目錄NSSearchPathDomainMask枚舉值,指定搜尋範圍expandTilde
Time of Update: 2015-03-09
Xcode6.1.1 ,故事板控制項無法和代碼關聯的問題解決,xcode6.1.1控制項根據 mvc 模式,顯然視圖(故事板),應該連接導向器層,也就是 viewcontroller,但是卻發現:這是改正之後的,開始的時候,串連的是 UIViewController,應該串連視圖控制器 ViewController 類類別關係如下:@interface ViewController : UIViewController@end NS_CLASS_AVAILABLE_IOS(2_0) @
Time of Update: 2015-03-09
IOS中的屬性列表----Property
Time of Update: 2015-03-09
UIImage 的imageWithContentsOfFile:path和imageNamed的區別,uiimage網狀圖片在做 tomcat 小例子的時候,發現了這個問題,摘自官方文檔+ (UIImage *)imageWithContentsOfFile:(NSString *)path通過載入指定路徑(全路徑)中的檔案,尋找載入映像資料,從而產生並返回一個繪圖物件(或者 nil),但是僅僅是載入出映像的對象,並不緩衝這個繪圖物件。一般用法:NSString *file =
Time of Update: 2015-03-09
oc檔案基本讀寫及操作,oc檔案讀寫操作代碼:#import <Foundation/Foundation.h>//NSString 寫檔案void stringWriteToFile(){ NSString *path = [NSHomeDirectory() stringByAppendingPathComponent:@"/Documents/test.txt"]; NSString *s = @"test"; [s writeToFile:path