摘要: self.dataArray = [[[NSMutableArray alloc]init] autorelease]; NSArray *array = [NSArray arrayWithObjects:[NSArray arrayWithObjects:@"Beijing",@"... 阅读全文
posted @ 2013-01-15 15:38 沙影无痕 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 一、ListView类1、常用的基本属性: (1)FullRowSelect:设置是否行选择模式。(默认为false) 提示:只有在Details视图该属性才有意义。 (2)GridLines:设置行和列之间是否显示网格线。(默认为false)提示:只有在Details视图该属性才有意义。 (3)... 阅读全文
posted @ 2013-01-15 11:55 沙影无痕 阅读(306) 评论(0) 推荐(0) 编辑
摘要: UIToolbar *toolBar = [[[UIToolbar alloc]initWithFrame:CGRectMake(0, self.scrollView.frame.size.height, self.view.frame.size.width, 30)] autoreleas... 阅读全文
posted @ 2013-01-15 11:47 沙影无痕 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 点击一个home button的时候出现以上发亮效果;具体设置:UIButton *homeButton = [[UIButton alloc] initWithFrame:frame];[homeButton setImage:[UIImage imageN... 阅读全文
posted @ 2013-01-15 09:06 沙影无痕 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 关于UIButton,既可以采用setBackgroundImage 来设置底部图片,同时也可以采用 setImage方法;两者还是有一定区别的;首先setBackgroundImage,image会随着button的大小而改变,图片自动会拉伸来适应button的大小,这个时候任然可以设置butto... 阅读全文
posted @ 2013-01-15 08:48 沙影无痕 阅读(211) 评论(0) 推荐(0) 编辑