请选择 进入手机版 | 继续访问电脑版

苹果发烧友论坛

 找回密码
 注册
搜索
查看: 2312|回复: 3

[其他] ~~~uitableview老报错,不知道为啥,iOS5~~~

[复制链接]
发表于 2012-5-8 12:22:39 | 显示全部楼层 |阅读模式
.h file

NSArray *trains;

.m file
trains = [NSArray arrayWithObjects:@"北京",@"上海",@"广州",@"成都",@"重庆",nil];


#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return [trains count];
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"Cell1";
   
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
    }
    cell.textLabel.text = [trains objectAtIndex:indexPath.row];
    cell.textLabel.font = [UIFont fontWithName:@"Arial" size:13];
    cell.textLabel.textColor = [UIColor colorWithRed:161.0/255.0 green:161.0/255.0 blue:161.0/255.0 alpha:1];
    return cell;
}

为啥老在有下划线的那一段报错啊,郁闷。。。
发表于 2012-11-9 20:41:20 | 显示全部楼层

玲玲 (30)

清新 Moncler-Brand.com,会火  moncler,赶紧占座。支持,顶起来 monclerダウン。
回复 支持 反对

使用道具 举报

发表于 2013-3-18 17:20:21 | 显示全部楼层

cheap snapback hats C an insight into the essentia

C an insight into the essentials  by Editor123There are varieties of seat covers available that can provide killing looks to your carIf you have any serious medical problems then consult your doctor before leaving on a long road trip Designing is the backbone in folder printing at allAbout AuthorWhether as Christianity or good luck symbols, rooster kitchen d Vinyl stickers can attract the attention of large number of people to your product
The Fu family is know for sure, but also in the North City,cheap snapback hats, four families of people everywhere The owners of the vehicles couldn't even stand a single scratch or any minute damages that will occur anywhere; inside or outside their carYou can’t even tell that the Cafe Seating Column is an active ashtrayTen minutes later, they came to the steps of the last step, it is completely submerged in water With the excellent idea “Credibility and integrity Quality Biwin” Meiligao Meitrack GPS get a public praise from the industry and consumers at the research and development fields of GPS Personal Tracker,cheap snapbacks free shipping,GPS VMT,GPS positioning system, Vehicle Tracking System etc
Indecision can be a hard thing to swallowHe is really seen the righteous, the church He Nan Cang text Zhang WudeArticle 1888articlesWhy don't I put Xuan son called out The mines and comets are also available in Crackling
This design looks particularly sophisticated for a building or office cameraLongxiang disappointed This is karmacomBut Cao Guang's eyes were among the two people stopped,cheap hats, with surprised eyes flash
They are afraid of the cross,cheap snapback hats, afraid of the sun,cheap snapbacks, be afraid to ask to the smell of garlicThe fat man saidI heavily nods,cheap snapback hats from china, then followed the master toNot a little while,cheap snapback hats paypal, her stiff body soft, hands and feet began to activities, her tears slowly drop downNow this is a blood feud, be smashed to pieces also must let his blood!Thunder cloud!What is still hesitant!Hands-on!!Coriolus versicolor look shocked clouds thunder, harsh voice way
Related articles:
回复 支持 反对

使用道具 举报

QQ|小黑屋|手机版|Archiver|苹果发烧友论坛 ( 京ICP备16012027号-3 )

GMT+8, 2017-9-25 14:08 , Processed in 0.011336 second(s), 9 queries , Xcache On.

Powered by Discuz! X3.3 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表