【06】codeblocks
【02】thunder
【05】kwmusic
【04】snippingtool:截图工具
【06】notepad:记事本
我在这里又添加了一个子cell,效果和之前的一样,奇迹sf。
【08】explorer:资源管理器
【11】winver:查看当前windows操作系统版本
通过界面我们断定是一个UITableView,分成三部分,传奇外传sf,第一部分是全天,第二部分是上午,第三部分是下午,劲舞团sf。最主要的是AM和PM中也是列表,这个就比较复杂了。我的做法是在这篇文章的基础上制作更复杂的界面。具体的过程如下:
【01】mspaint:画图程序
【04】ttplayer
……
另外,把一些应用程序的路径加到系统的path环境变量里,就可以很方便地使用这些程序来,魔兽世界私服。我最常用的程序和游戏会加到系统变量里:
【13】diskmgmt:磁盘管理实用程序
最近项目中需要实现如下图所示的效果:
【01】qq
下面在总结一下实现的过程,就是在一个tableview中的cell中在添加一个uitableview。
……
【02】calc:计算器
IBOutlet UITableView *myTaleView;
IBOutlet UILabel *lable;
【14】devmgmt:设备管理器
【07】cmd:控制台
【12】powershell
【03】taskmgr:任务管理器
#import <UIKit/UIKit.h>
@interface MyProfileTableViewCell : UITableViewCell
<UITableViewDelegate,UITableViewDataSource>{
IBOutlet UITableView *myTaleView;
IBOutlet UILabel *lable;
}
@property (nonatomic,retain) UITableView *myTaleView;
@property (nonatomic,retain) UILabel *lable;
@end
【09】magnify:放大镜
【03】fetion
实现相应的set get方法。在和IB中相应的组建相连。
#import "MyProfileTableViewCell.h"
#import "MyTableViewCell.h"
@implementation MyProfileTableViewCell
@synthesize myTaleView,魔兽世界私服,lable;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
}
return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
}
- (void)dealloc {
[self.lable release];
[self.myTaleView release];
[super dealloc];
}
- (NSInteger)tableView:(UITableView *)tableView1 numberOfRowsInSection:(NSInteger)section {
return 5;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"CustomCellIdentifier";
MyTableViewCell *cell = (MyTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"MyTableViewCell" owner:self options:nil];
cell = [array objectAtIndex:0];
[cell setSelectionStyle:UITableViewCellSelectionStyleGray];
}
[[cell label] setText:@"10:00"];
[[cell _content] setText:@"早上起来卖大米,卖了一筐大大米。/n早上起来卖大米,卖了一筐大大米。"];
return cell;
}
- (CGFloat)tableView:(UITableView *)atableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 56;
}
@end
这样的命令有很多以下只写我常用的,
在自定义的cell中添加组建,我的类是MyProfileTableViewCell,在这个中添加:
【07】cs
【10】msconfig:系统配置实用程序
【05】write:写字板
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"CustomCellIdentifier";
if ([indexPath section]==0) {
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellSelectionStyleGray
reuseIdentifier:CellIdentifier] autorelease];
}
return cell;
}else {
MyProfileTableViewCell *cell = (MyProfileTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"MyProfileTableViewCell" owner:self options:nil];
cell = [array objectAtIndex:0];
[cell setSelectionStyle:UITableViewCellSelectionStyleGray];
if ([indexPath section]==1) {
[[cell lable] setText:@"AM"];
}
if ([indexPath section]==2) {
[[cell lable] setText:@"PM"];
}
return cell;
}
}