随笔分类 -  iOS

『iOS小案例』 类型转换失败(use of undeclared identifier)
摘要:『iOS学习笔记』类型转换失败(use of undeclared identifier)下面这句话为何抛错:use of undeclared identifier,-(void)request{ NSObject *otherBizData = [iLoginViewController callAddBiz]; NSObject *otherRequestData = [iLoginViewController callAdd]; if([otherRequestData isKindOfClass:[NSArray class]] && [ot... 阅读全文

posted @ 2012-06-07 20:10 Clark Chan 阅读(4036) 评论(0) 推荐(0)

『iOS学习笔记』 UIButton-1
摘要:『iOS学习笔记』UIButton-1UIButton /// UIButton //创建UIButton UIButton *tmpButton =[[[UIButton alloc] init]autorelease]; //设置背景颜色 tmpButton.backgroundColor = [UIColor blueColor]; //设置标题文本 [tmpButton setTitle:@"MyButton" forState:UIControlStateNormal]; //设置标题文本的颜色 [... 阅读全文

posted @ 2012-05-18 16:49 Clark Chan 阅读(443) 评论(0) 推荐(0)

『iOS学习笔记』 - 变量 属性 方法 实现
摘要:『iOS学习笔记』 - 变量 属性 方法 实现1、代码说明:Person.hPerson.h#import <Foundation/Foundation.h>@interface Person : NSObject{ int age,sex;//变量的定义 int height,width;}@property int age,sex;//属性的定义@property char height;//-(void) setAge;-(int) setAge1 :(int)a;-(int) setWH :(int)w :(int)h; /* 方法的定义 格式 -(返回的数据类型)... 阅读全文

posted @ 2012-05-14 11:44 Clark Chan 阅读(522) 评论(1) 推荐(0)

『iOS学习笔记』 - Hello Word
摘要:『iOS学习笔记』 - Hello Word1、运行Xcode并创建项目2、选择项目类型,继续3、录入项目的名称、公司名称,继续4、选择存放的位置,继续5、项目创建后6、添加Label控件7、调整Lable大小,设置Lable文字居中8、添加Button控件9、修改Button的文本10、添加代码h11、添加代码m12、拖拽使控件与变量关联13、拖拽使控件与事件绑定14、拖拽为ViewController设置View Outlet15、运行程序和模拟器 阅读全文

posted @ 2012-05-14 11:40 Clark Chan 阅读(918) 评论(3) 推荐(1)

导航