小编SKa*_*ser的帖子

gcc-4.2失败,退出代码为1 iphone

我在论坛上看到了这个错误和不同的变化,但作为一个非程序员,我不知道如何推进这个.

基本上我有代码,我发现它可以帮助我在分组的uitableview上更改单元格的背景颜色.代码引入了一行:

CGContextAddArcToPoint(c, minx, miny, midx, miny, ROUND_SIZE);
Run Code Online (Sandbox Code Playgroud)

这给出了一个错误,表明它没有声明,所以我在我的.h文件中添加了以下import uikit:

#import <UIKit/UIKit.h>
#define ROUND_SIZE 10
Run Code Online (Sandbox Code Playgroud)

现在它显示我有一个错误:

命令/开发人员/平台/ iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2失败,退出代码为1 iphone

一些讨论谈论图书馆,但因为我没有编程背景,我不明白该怎么做.我也看到有些人显示日志输出,但我不知道它来自哪里,因为我没有得到任何调试窗口,因为我猜它没有那么远.我只需单击"Build and Go"即可在"消息"窗口中看到此错误.

有什么想法吗?

iphone gcc exit-code

22
推荐指数
4
解决办法
9万
查看次数

在uitableviewcell上的tableview中重复行

我发现了一些与我的问题类似的帖子,但不完全相同.

在我的应用程序中,用户可以在几个uitableview之间导航以深入查看所需的结果.当用户前进,然后向后,然后前进等时,可以注意到正在重新绘制/重写行,并且文本变得更大胆.

我发现在某些帖子中,这可能与我创建行的方式有关,使用cellforrowatindexpath方法中的uilable .

是否有一些我需要做的事情,以便每次用户在tableviews之间前进和后退时不会重新填充/重绘行?我是否需要在下面的代码中添加一些东西或者在viewwillappear方法中添加一些东西(目前viewwillappear中有一个'reloaddata'用于表但似乎没有帮助)?

这是我的代码:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 
{
static NSString *CellIdentifier = @"Cell";

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) 
{
    cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
}
    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;

    UILabel *label = [[[UILabel alloc] init] autorelease];
    label.font = [UIFont fontWithName:@"Arial-BoldMT" size:20];
    label.frame = CGRectMake(10.0f, 10.0f, 220.0f, 22.0f);
    label.textColor = [UIColor blackColor];
    label.backgroundColor = [UIColor clearColor];
    label.opaque = NO;
    label.text = [mapareaArray objectAtIndex:indexPath.row];
    [cell.contentView addSubview:label];

    CustomCellBackgroundView *bgView = [[CustomCellBackgroundView …
Run Code Online (Sandbox Code Playgroud)

iphone uitableview uilabel

6
推荐指数
1
解决办法
6073
查看次数

标签 统计

iphone ×2

exit-code ×1

gcc ×1

uilabel ×1

uitableview ×1