RT 还有不能用CollectionView 大家帮帮忙呀
解决方案 »
- 一个数组可以放UIButton,那怎么调用这些元素呢,[array objectatindex i]不好用]
- 父页面连续push3个view 。如何从ControlView3 返回父页面并刷新父页面?
- 获取通讯录中得电子邮件???
- iPhone 常见砖头问题修复
- objective-c如何自定义函数
- storyboard TableView reloadData 不刷新,盼指点
- 如何在TODO List列表前加上Check Box
- 用过eclipse的求教
- NSInteger问题
- iOS开发:构建版本时,苹果回复:我的应用程序使用了非公有符号: _locale_charset
- BOOL*是什么意思
- 为什么运行时老是提示我在定义的uiview对象名面前加下划线_?
主要是计算图片的坐标位置及设置UIScrollView的contentSize.
http://my.oschina.net/plumsoft/blog/51723xib里根据需要并排放2个UIImageView
.h
@property (retain, nonatomic) UIImageView *imageView1;
@property (retain, nonatomic) UIImageView *imageView2;.m
@sy....:imageView1;
@sy....:imageView2;
- dealloc {
[imageView1 release];
[imageView2 release];
}
- initWith...{
self = ...
if(self){
self.imageView1 = [[[UIImageView alloc]initWithFrame:]autorelease];
self.imageView2 = [[[UIImageView alloc]initWithFrame:]autorelease];
[self.contentView addSubView:imageView1];
[self.contentView addSubView:imageView2]; }
return self;
}在 UITableView的DataSource里面:MyTableViewCell *cell = {MyTableViewCell*)[table deq...];if(cell == nil){
cell = [[[MyTableViewCell alloc]]initwith...]]autorealse];
}
cell.imageView1.image = [UIImage imageName:...];
cell.imageView2.image = [UIImage imageName:...];