08 2011 档案

代码实现的事件响应
摘要:在XCode中,使用interfacebuilder实现界面的处理比较方便(很好地实现了MVC),但是在某些时候,我们需要用代码来实现事件的绑定,特别是在动态添加控件的情况下。一个典型的代码如下:UIButton *button=[UIButton buttonWithType:UIButtonTypeRoundedRect];button.frame=frame;[button setTitle:@"TestButton" forState:UIControlStateNormal];button.backgroundColor=[UIColor clearColor]; 阅读全文

posted @ 2011-08-12 22:21 wljcan 阅读(403) 评论(0) 推荐(0) 编辑

UIAlertView的使用方法
摘要:UIAlertView类似于C#中的模态对话框 或 Messagebox ,但是,ios中使用起来要麻烦得多。下面这段代码是一段典型的应用:UIAlertView *alert =[[UIAlertView alloc] initWithTitle:@"hello" message:@"ipad ,i come" delegate:self cancelButtonTitle:@"ok" otherButtonTitles:nil];[alert show];[alert release];但是,如果复杂一点,就麻烦了,如果上面加上几 阅读全文

posted @ 2011-08-12 18:14 wljcan 阅读(9537) 评论(1) 推荐(0) 编辑

开始新的学习历程--ios开发
摘要:已经很大岁数的人了,因为项目的需要,开始ios的开发。开始使用 macbook,感觉一切都是新的,一个菜鸟坐在漂亮的macbook前。 office没有了(office for mac有点难用啊)、喜欢的输入法没有了、网银不能用了、键盘也不习惯......唉,别扭。下载 xcode,免费,呵呵,这个不错。开始买书 objective c、ipad开发、iphone开发.....看到objective c的代码更晕了,和C#、java完全不一样啊,C的超级?超得太多了吧?慢慢学吧。今天根据书上的例子,自己试了试,了解了几个重要概念。IBOutlet 建立代码与 XIB中控件的关联,手工在.h文件 阅读全文

posted @ 2011-08-11 16:25 wljcan 阅读(807) 评论(5) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示