Danh mục NSMutableMutables(GCKAdditions)

Tham chiếu danh mục NSMutableMutable(GCKAdditions)

Tổng quan

Một danh mục thêm một số phương thức thuận tiện vào NSDictionary để đặt giá trị thuộc nhiều loại.

Các phương thức này đặc biệt hữu ích trong việc lấy và cài đặt các trường của đối tượng dữ liệu JSON.

Tóm tắt phương thức thực thể

(void) - gck_setStringValue:forKey:
 Đặt giá trị NSString cho khoá. Xem thêm...
 
(void) - gck_setIntegerValue:forKey:
 Đặt giá trị NSInteger cho một khoá. Xem thêm...
 
(void) - gck_setUIntegerValue:forKey:
 Đặt giá trị NSUInteger cho một khoá. Xem thêm...
 
(void) - gck_setDoubleValue:forKey:
 Đặt giá trị double cho một khoá. Xem thêm...
 
(void) - gck_setBoolValue:forKey:
 Đặt giá trị BOOL cho khoá. Xem thêm...
 

Chi tiết phương pháp

- (void) gck_setStringValue: (NSString *)  value
forKey: (NSString *)  key 

Đặt giá trị NSString cho khoá.

Parameters
valueThe value.
keyThe key.
- (void) gck_setIntegerValue: (NSInteger)  value
forKey: (NSString *)  key 

Đặt giá trị NSInteger cho một khoá.

Parameters
valueThe value.
keyThe key.
- (void) gck_setUIntegerValue: (NSUInteger)  value
forKey: (NSString *)  key 

Đặt giá trị NSUInteger cho một khoá.

Parameters
valueThe value.
keyThe key.
- (void) gck_setDoubleValue: (double)  value
forKey: (NSString *)  key 

Đặt giá trị double cho một khoá.

Parameters
valueThe value.
keyThe key.
- (void) gck_setBoolValue: (BOOL)  value
forKey: (NSString *)  key 

Đặt giá trị BOOL cho khoá.

Parameters
valueThe value.
keyThe key.