Time of Update: 2015-01-13
標籤:nil: A null pointer to an Objective-C object.( #define nil ((id)0) )nil表示一個Objective-C對象,這個對象的指標指向空Nil: A null pointer to an Objective-C class.首字母大寫的Nil 和nil有一點不一樣,Nil定義一個指向空的類,是class,而不是對象。#define Nil 0 NULL: A
Time of Update: 2015-01-03
標籤:nsinteger nsuinteger nsnumber 在Objective-C中,我們可以使用c中的數字資料類型,int、float、long等。它們都是基礎資料型別 (Elementary Data Type),而不是對象。也就是說,不能夠向它們發送訊息。然後,有些時候需要將這些值作為對象使用。NSInteger、NSUInteger
Time of Update: 2014-12-16
標籤:style blog http ar 使用 sp strong on 2014 一、基本概念多態在代碼中的體現,即為多種形態,必須要有繼承,沒有繼承就沒有多態。在使用多態是,會
Time of Update: 2014-12-15
標籤:style blog http io ar os 使用 sp strong OC語言前期準備一、OC簡介Oc語言在c語言的基礎上,增加了一層最小的物件導向文法,完全相容C語言,在OC代碼中
Time of Update: 2014-12-14
標籤:des style blog io ar color os 使用 sp 目前移動開發熱火朝天,今天在家學習最近入手的《Objective-c基礎教程》,初步感覺Objective-c與
Time of Update: 2014-12-10
標籤:style blog http io ar color os 使用 sp 本篇博文,將給大家介紹下再Objective-C中如何使用記憶體管理。一個程式啟動並執行時候,如果不及時的釋放
Time of Update: 2014-07-06
標籤:style blog http color 使用 檔案 // First program example#import <Foundation/Foundation.h>int main (int argc, const char * argv[]) {
Time of Update: 2014-10-18
標籤:des style color io os 使用 for strong sp 一):block學習總結block :用來儲存一段代碼。 1、block
Time of Update: 2014-10-11
標籤:ios開發 nsdictionary // 1. 字典初始化、賦值方式1 NSMutableDictionary *m_dictionary = [[NSMutableDictionary alloc] initWithCapacity:0]; [m_dictionary setObject:@1 forKey:@"語文"]; [m_dictionary setObject:@2
Time of Update: 2014-10-11
標籤:ios開發 objective-c nsvalue // NSValue可以將c類型轉換為Objective-C對象,如NSRange,CGPoint,CGSize,CGRect,CGVector,UIEdgeInsets,UIOffset NSRange range = NSMakeRange(0, 1); NSValue *rangeValue = [NSValue
Time of Update: 2014-10-09
標籤:ios1、簡介從今天開始接觸IOS開發,而後則接觸PHP開發,接觸是為了更好的理解開發。IOS的開發前提是Objective-C,本篇簡單總結其知識點。什麼是Objective-C,它是C的物件導向的擴充。2、知識點1、Objective-C類定義有兩個部分:介面部分和實現部分。介面部分:@interface className:superclassName{Instance variable declarations}Method
Time of Update: 2014-09-24
標籤:des style color io 使用 ar strong 檔案 div protocol:協議
Time of Update: 2014-09-24
標籤:style color io os 使用 ar strong for 檔案 基本原理: 1、什麼是記憶體管理
Time of Update: 2014-08-26
標籤:blog os io for ar 2014 art 問題 div CCLuaObjcBridge是cocos2d-x系列引擎與Objective-C進行互動的“橋樑”,老廖的quick-
Time of Update: 2014-08-16
標籤:objective-c 指標 對象的複製有深複製和淺複製兩種,聽上去高大上會很難,其實很簡單;來舉個例子:NSMutableArray * array1 = [NSMutableArray arrayWithObjects:@"a" ,@"b", nil]; NSMutableArray *array2 = array1; [array2
Time of Update: 2014-08-13
標籤:style blog color 使用 os io 資料 for 1.NSDictionary 和NSMutableDictionary NSDictionary
Time of Update: 2014-07-28
標籤:style blog http color 使用 os strong 檔案 ---------------------- ASP.Net+Unity開發、.Net培訓、期待與您交流! -------------
Time of Update: 2014-07-18
標籤:io cti re c 管理 時間
Time of Update: 2014-07-19
標籤:style blog color strong os 檔案 在標頭檔中聲明:@property (nonatomic,strong) NSString * str;在oc中,這一行代碼錶示一個名為str的屬性。在實現檔案.m中聲明:@synthesize
Time of Update: 2018-12-07
基礎資料型別 (Elementary Data Type) 1. int輸出格式符:%i, %d, %o %x, 2. float輸出格式符:%f, %e, %g3. double輸出格式符:%f, %e, %g4. char輸出格式符:%c 限定符:1. longlong int: %lilong double: %Lf形成long int通過在數字後面加L.long int number = 123324123234123L;2. long longlong long int: %lli3.