摘要: 如题: 1 #import "AppDelegate.h" 2 3 @interface AppDelegate () 4 5 @end 6 7 @implementation AppDelegate 8 9 10 - (BOOL)application:(UIApplication *)a... 阅读全文
posted @ 2014-11-01 00:43 高了个辉 阅读(555) 评论(0) 推荐(0)
摘要: 第一章 1 #import "ViewController.h" 2 3 @interface ViewController () 4 5 @end 6 7 @implementation ViewController 8 9 10 - (IBAction)buttonPressed:(UI... 阅读全文
posted @ 2014-11-01 00:40 高了个辉 阅读(196) 评论(0) 推荐(0)
摘要: 温故知新,常用常新 //1、创建常量字符串。NSString *astring = @"This is a String!"; //2、创建空字符串,给予赋值。NSString *astring = [[NSString alloc] init]; astring = @"This is a Str... 阅读全文
posted @ 2014-10-19 20:00 高了个辉 阅读(750) 评论(0) 推荐(0)
摘要: 要求从外部定义一个函数,改变main函数里c的值步骤:1.调用函数,如果要在外部修改main函数中变量的值,需要把这个值的地址传给函数.&c2.在外部函数中,利用指针将指向c的值修改. 1 void changeC (char *p){ 2 3 //通过指针.修改c的值 4 5 *p... 阅读全文
posted @ 2014-10-19 14:02 高了个辉 阅读(473) 评论(0) 推荐(0)
摘要: 1. OC 语法初步, 你可能学到面向对象最近本的概念, 并且可以大致的建立几个自以为是的类,但这仅仅是开始、 你知道为什么面向对象要有3大特性么、知道他们是用到什么设计模式的么2. 你可能学到了NSString, NSMutableString 字符串的基本操作方法, 你可能会花大量的时间去看那些... 阅读全文
posted @ 2014-10-17 12:34 高了个辉 阅读(148) 评论(0) 推荐(0)
摘要: 在iOS开发过程中,属性的定义往往与retain, assign, copy有关,我想大家都很熟悉了,在此我也不介绍,网上有很多相关文章。现在我们看看iOS5中新的关键字strong, weak, unsafe_unretained. 可以与以前的关键字对应学习strong与retain类似,wea... 阅读全文
posted @ 2014-10-17 11:37 高了个辉 阅读(117) 评论(0) 推荐(0)