![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Objective-C学习
oneToneOm
这个作者很懒,什么都没留下…
展开
-
OC基础语法学习笔记-20120712
Objective-C语法: 一:对象声明语法:类名 * 对象名 = [[类名 alloc] init] [对象名 release] //释放对象的实例 注:alloc是NSObject的类方法,init是实现类的初始化方法 二:类 @interface MyClass:NSObject //接口 { int count; id da原创 2012-07-12 15:03:58 · 6323 阅读 · 0 评论 -
Object-C编码规范
Object-C编码规范 参考资料: • Apple: Coding Guidelines for Cocoa • Google: Objective-C Style Guide • Three20: Source code style guildelines 正文: • 格式化代码 ◦ 指针“*”号的位置 ▪ 如:NSString *varName; ◦ 空格 VS tab转载 2013-01-23 13:51:06 · 2696 阅读 · 0 评论 -
iPhone应用开发之一:窗口,视图,视图控制器和UIKit基础
转载自Andy--清风 地址:http://www.cnblogs.com/huangdongcheng/archive/2011/11/05/2236916.html 感谢Andy--清风 1、窗口:UIWindow iPhone的规则是一个窗口,多个视图,窗口是你在app显示出来你看到的最底层,他是固定不变的,基本上可以不怎么理会,但要知道每层是怎样的架构。 2、视图:UIView转载 2012-08-22 10:25:13 · 511 阅读 · 0 评论 -
Object-c 总结之NSString
参照《iphone SDK 3开发快速上手》编写,特此声明 //创建一个NSString NSString *myString1 = @"some string"; NSLog(@"%@",myString1); //格式化创建 NSString *myString2 = [N转载 2012-08-22 10:18:30 · 1676 阅读 · 0 评论 -
Object-c 总结之NSDate
NSDate的常见用法总结 // 当前时间创建NSDate NSDate *myDate = [NSDate date]; NSLog(@"myDate = %@",myDate); //从现在开始的24小时 NSTimeInterval secondsPerDay = 24*60*60;转载 2012-08-22 10:31:48 · 801 阅读 · 0 评论 -
Object-c 总结之NSArray
NSArray的基本应用总结 NSString *string1 = @"two"; NSString *string2 = @"one"; //创建数组 NSArray *array1 = [NSArray arrayWithObjects:string1,string2, nil]; NSArray *arra转载 2012-08-22 10:21:18 · 2676 阅读 · 0 评论 -
Object-c 总结之NSDictionary
NSDictionary的常见用法总结 NSArray *array1 = [NSArray arrayWithObjects:@"iphone",@"ipod",nil]; NSArray *array2 = [NSArray arrayWithObjects:@"mac",@"imac",@"mac pro",nil]; //类方法初始化自转载 2012-08-22 10:20:01 · 1376 阅读 · 0 评论 -
UILabel的常见用法
- (void)loadView { [super loadView]; //1.UILable的大小自适应实例: UILabel *myLabel=[[UILabel alloc] initWithFrame:CGRectMake(0, 0, 2, 2)];//设定位置与大小 [myLabel setFont:[UIFont fontWithName:@转载 2012-08-22 10:22:33 · 657 阅读 · 0 评论 -
Objective-C API
https://developer.apple.com/library/ios/navigation/index.html原创 2012-07-13 13:32:35 · 1319 阅读 · 0 评论 -
UITableView详解
-、建立 UITableView DataTable = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 420)]; [DataTable setDelegate:self]; [DataTable setDataSource:self]; [self.view addSubview:DataTable转载 2013-12-24 15:39:55 · 617 阅读 · 0 评论