随笔分类 -  iOS

视图缩放、移动、旋转--ios
摘要:UIView *view=[[UIView alloc] initWithFrame:CGRectMake(50, 50, 100, 100)]; view.backgroundColor=[UIColor redColor]; view.tag=10; [self.w... 阅读全文

posted @ 2014-08-31 15:37 clarenceV1 阅读(209) 评论(0) 推荐(0)

UIview 学习与自定义--ios
摘要:UIView *view1=[[UIView alloc] initWithFrame:CGRectMake(50, 50, 100, 100)]; view1.backgroundColor=[UIColor yellowColor]; view1.tag=1; ... 阅读全文

posted @ 2014-08-26 00:14 clarenceV1 阅读(154) 评论(0) 推荐(0)

类的扩展--类目和延展--ios
摘要:person+money.h 这是类目类#import "Person.h"//这是扩展person类的接口类,独立一个文件@interface Person (Money)-(void) haveMoney;@endperson+money.m这是类目类#import "Person+Money.... 阅读全文

posted @ 2014-08-19 23:24 clarenceV1 阅读(524) 评论(0) 推荐(0)

浅拷贝,深拷贝---ios
摘要:#import @interface Father : NSObject @property (nonatomic,copy) NSString *name;@property (nonatomic,retain) NSNumber *age;-(id) initWithName:(NSString... 阅读全文

posted @ 2014-08-19 00:31 clarenceV1 阅读(200) 评论(0) 推荐(0)

通知---iOS
摘要:#import #define CHILD_WEAK_NOTIFC @"childe_week"@interface Child : NSObject@property (nonatomic,assign) int age;@property (nonatomic,assign) NSInteger... 阅读全文

posted @ 2014-08-18 23:11 clarenceV1 阅读(182) 评论(0) 推荐(0)

谓词的使用 -ios
摘要:#import @interface Person : NSObject@property(nonatomic,copy) NSString *name;@property(nonatomic,retain) NSNumber *age;-(void) setNewName:(NSString *)... 阅读全文

posted @ 2014-08-18 00:13 clarenceV1 阅读(252) 评论(0) 推荐(0)

kvo-观察者-iOS
摘要:#import @interface Child : NSObject@property (nonatomic,assign) int age;-(id) initWithAge:(int) age;@end#import "Child.h"@implementation Child-(id) in... 阅读全文

posted @ 2014-08-17 12:34 clarenceV1 阅读(174) 评论(0) 推荐(0)

对象属性操作-包含kvc---ios
摘要:#import @class Author;@interface Books : NSObject{ @private NSString *color; int book_id; NSString *box; Author *author; NSArray *r... 阅读全文

posted @ 2014-08-17 03:06 clarenceV1 阅读(625) 评论(0) 推荐(0)

UserDefault的使用,保存小数据到本地-iOS
摘要://保持到本地数据 NSArray *array=@[@"234",@"sdfe"]; NSUserDefaults *userDefault=[NSUserDefaults standardUserDefaults]; [userDefault setInteger:123 forKey:... 阅读全文

posted @ 2014-08-16 18:58 clarenceV1 阅读(821) 评论(0) 推荐(0)

归档-ios
摘要:/****普通对象归档**/ NSString *homePath=NSHomeDirectory(); NSString *fileName=@"test.vse"; NSString *path=[homePath stringByAppendingPathComponent:... 阅读全文

posted @ 2014-08-16 12:06 clarenceV1 阅读(175) 评论(0) 推荐(0)

导航